Re: [R] ggplot2 to create a "square" plot

2011-09-02 Thread Alaios
for your help B.R Alex From: Dennis Murphy Cc: "R-help@r-project.org" Sent: Thursday, September 1, 2011 3:18 PM Subject: Re: [R] ggplot2 to create a "square" plot Hi: > Dear Dennis, > I would like to thank you for your reply. >

Re: [R] ggplot2 to create a "square" plot

2011-09-02 Thread Paul Hiemstra
On 09/01/2011 09:02 PM, baptiste auguie wrote: > Hi, > > Are you after this? > > last_plot() + opts(aspect.ratio=1) Even better (I once got correct by Hadley for using aspect.ratio, but this was plotting spatial data...) last_plot() + coord_equal() cheers, Paul > Also, see https://github.com/h

Re: [R] ggplot2 to create a "square" plot

2011-09-01 Thread baptiste auguie
Hi, Are you after this? last_plot() + opts(aspect.ratio=1) Also, see https://github.com/hadley/ggplot2/wiki/Themes for some settings re: plot margins. HTH, baptiste On 1 September 2011 05:18, Alaios wrote: > Dear all, > I am using ggplot with geom_tile to print as an image a matrix  I have.

Re: [R] ggplot2 to create a "square" plot

2011-09-01 Thread Dennis Murphy
Do you have any suggestion of how I can remove it? > I would like to thank all for their time. > B.R > Alex > > From: Dennis Murphy > To: Alaios > Cc: "R-help@r-project.org" > Sent: Wednesday, August 31, 2011 9:34 PM > Subject:

Re: [R] ggplot2 to create a "square" plot

2011-08-31 Thread Alaios
of how I can remove it? I would like to thank all for their time. B.R Alex From: Dennis Murphy Cc: "R-help@r-project.org" Sent: Wednesday, August 31, 2011 9:34 PM Subject: Re: [R] ggplot2 to create a "square" plot Hi: I'd suggest using gg

Re: [R] ggplot2 to create a "square" plot

2011-08-31 Thread Dennis Murphy
Hi: I'd suggest using ggsave(); in particular, see its height = and width = arguments. If you have some time, you could look at some examples of ggplot2 themes: https://github.com/hadley/ggplot2/wiki/themes and some examples of how to use various opts(): https://github.com/hadley/ggplot2/wiki/%2Bo

[R] ggplot2 to create a "square" plot

2011-08-31 Thread Alaios
Dear all, I am using ggplot with geom_tile to print as an image a matrix  I have. My matrix is a squared one of 512*512 cells.  The code that does that is written below > print(v + geom_tile(aes(fill=dB))+ > opts(axis.text.x=theme_text(size=20),axis.text.y=theme_text(size=20), > axis.title.x=