Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Simone Giannerini
Thanks for your clarifications, I use legends only when the plot is at its final size and also had a look at windows() before posting but at first I could not relate the legends' behaviour to the resizing effect. Kind regards, Simone On Thu, Jan 8, 2009 at 4:02 PM, Prof Brian Ripley wrote: > O

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Prof Brian Ripley
On Thu, 8 Jan 2009, Simone Giannerini wrote: Now I got how to reproduce it, it has nothing to do with multiple figure environment but rather with figure resizing. Here it is: curve(dnorm,col=4,from=-4,to=4); legend(-4,0.3,legend="curve",lty=1,col=4) # Now expand the figure to full screen lege

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Duncan Murdoch
On 1/8/2009 9:29 AM, Simone Giannerini wrote: Now I got how to reproduce it, it has nothing to do with multiple figure environment but rather with figure resizing. Here it is: curve(dnorm,col=4,from=-4,to=4); legend(-4,0.3,legend="curve",lty=1,col=4) # Now expand the figure to full screen le

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Simone Giannerini
You can find the resulting graph here (produced under win Vista) http://www2.stat.unibo.it/giannerini/R/try.eps (produced under win Vista) platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 8.1 year

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Simone Giannerini
Now I got how to reproduce it, it has nothing to do with multiple figure environment but rather with figure resizing. Here it is: curve(dnorm,col=4,from=-4,to=4); legend(-4,0.3,legend="curve",lty=1,col=4) # Now expand the figure to full screen legend(-4,0.2,legend="curve",lty=1,col=4) Simone

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Simone Giannerini
On linux, I get > dev.cur() null device 1 > str(X11.options()) List of 15 $ display: chr "" $ width : num NA $ height : num NA $ pointsize : num 12 $ bg : chr "transparent" $ canvas : chr "white" $ gamma : num 1 $ colortype : chr "true" $ maxcube

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Martin Maechler
> "SG" == Simone Giannerini > on Thu, 8 Jan 2009 14:08:17 +0100 writes: SG> Dear Mathieu, On Thu, Jan 8, 2009 at 12:14 PM, Mathieu SG> Ribatet wrote: >> Dear Simone, >> >> Did mean that the legend (text and/or box) overlap with >> the Normal density? SG>

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Simone Giannerini
Dear Mathieu, On Thu, Jan 8, 2009 at 12:14 PM, Mathieu Ribatet wrote: > Dear Simone, > > Did mean that the legend (text and/or box) overlap with the Normal density? no, I mean that the two legend() commands, which are identical in all but the y-coordinates, produce different results, namely boxe

Re: [Rd] legend() in a multiple figure environment

2009-01-08 Thread Mathieu Ribatet
Dear Simone, Did mean that the legend (text and/or box) overlap with the Normal density? If so then I think there's no problem as the legend is placed where you told R to do. And R won't check (for you) if it will overlap or not with pre-existing graphical elements. On my computer, I got the