Hi

On 25/04/2010 11:11 p.m., Jim Lemon wrote:
On 04/25/2010 06:27 AM, tamas barjak wrote:
Hi

I do not speak in English very well, I'm sorry.

I try good:

layout(matrix(1:4,ncol=2, byrow=T)) = par(mfrow=c(2, 2))

plot(1,1)<--- anddoes plot in the upper left corner
plot(2, 2)<--- upper right corner

BUT, I like plot( n, m) for example lower right corner, or lower left
corner, or again upper right corner etc...

But I received an answer already:

?split.screen
?screen   #same help page

 From this is it any better?

Yes, that is probably the one you want. I think that split.screen is the
only one of the "multiple plot in one device" functions in base graphics
that allows you to specify the area in which you want to plot.

What about ... ?

layout(matrix(4:1, ncol=2, byrow=T)) # != par(mfrow=c(2, 2))

Paul

Unfortunately, split.screen does not seem to preserve the device
coordinates, so if you go back to a plot:

screen(2)
lines(1:5,rnorm(5))

it does not generally plot in the correct place. I think you might have
to group your plotting commands:

screen(1)
plot(10:1)
lines(2:4,2:4)
screen(4)
plot(rnorm(6))
points(rnorm(6),col="red")

which you can do with the other multiple plot functions anyway.

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to