A couple of additions to the suggestions that you have already received:

1. you can use par(mfrow=c(r,c)) to set up the plotting areas, then us 
par(mfg=c(r,c)) to tell R which frame to plot into.

2. you could start with an empty plot and use the subplot function 
(TeachingDemos package) to place each plot exactly where you want.

3. you can use layout, just create the matrix with the numbers representing the 
order you want to plot.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of tamas barjak
> Sent: Friday, April 23, 2010 2:58 PM
> To: r-help@r-project.org
> Subject: [R] 2 simple question
> 
> Hi All!
> 
> I have 2 plain questions:
> 
> 1.)
> I know that very primitive question, but that to grant it, that the
> drawing
> on the screen divided up onto which part draw
> 
> for example:
> 
> 
> layout(matrix(1:4,ncol=2, byrow=T))
> 
> plot(x, y, ...) <--- 1. screen
> 
> plot(y, z, ...) <--- 3. screen
> 
> plot(z, x, ...) <--- 2. screen
> 
> etc...
> 
> 2.)
> 
> How I can fix it and to insert the random numbers in order for him to
> generate them later
> 
> for example:
> 
> a<-runif(100)
> 
> and to insert these here---> rnorm(100, 0, 1)
> 
> Thank you!
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.

______________________________________________
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