Re: [R] plot multiple graphs in one graph and in multiple windows

2013-10-03 Thread Patrick Connolly
On Thu, 26-Sep-2013 at 04:47PM +, Hui Du wrote: |> |> Hi All, |> |> I have a question about plotting graphs. Supposedly, I want to plot |> 12 graphs. Putting 12 graphs to one window seems too |> crowded. Ideally, I want to put 4 pictures in one window and plot |> them in three separate wind

Re: [R] plot multiple graphs in one graph and in multiple windows

2013-09-26 Thread Greg Snow
I think that you want: if (i %% 4 == 1 ) { dev.new() par(mfrow=c(2,2)) } or with the R 3.0.2 it looks like you will be able to do: if( par('page') ) { dev.new() par(mfrow=c(2,2)) } On Thu, Sep 26, 2013 at 10:47 AM, Hui Du wrote: > > Hi All, > > I have a question about plotting grap

[R] plot multiple graphs in one graph and in multiple windows

2013-09-26 Thread Hui Du
Hi All, I have a question about plotting graphs. Supposedly, I want to plot 12 graphs. Putting 12 graphs to one window seems too crowded. Ideally, I want to put 4 pictures in one window and plot them in three separate window. For exmaple, my psuedo code is like par(mfrow = c(2, 2)) for( I i