# Re: [R] R: create multi windows plot at the same time

From: <ctu_at_bigred.unl.edu>
Date: Fri, 25 Jul 2008 15:42:16 -0500

par(mfrow=c(2,2)) is trying to open a 2*2 figures in one window, so you could see your v1,..v4 in one windows at the same time

if you want they plot separately then you could use x11() for each plot()

Chunhao

Quoting Alessandro <alessandro.montaghi_at_unifi.it>:

> Hi I have a problem with par(mfrow=c(2,2)) code, because I don’t understand
> this:
>
>
>
> par(mfrow=c(2,2))
>
> plot(v1)
>
> plot(v2)
>
> plot(v3)
>
> plot(v4)
>
>
>
> it opens a v1 window and after close that window to open next v2 plot
>
>
>
> Da: stephen sefick [mailto:ssefick_at_gmail.com]
> Inviato: venerd́ 25 luglio 2008 12.13
> A: ctu_at_bigred.unl.edu
> Cc: Alessandro; r-help_at_r-project.org
> Oggetto: Re: [R] create multi windows plot at the same time
>
>
>
> or quartz() or windows()
> you could also use
> par(mfrow=c(2,2))
>
> On Fri, Jul 25, 2008 at 3:05 PM, <ctu_at_bigred.unl.edu> wrote:
>
> Hi, you only need to add x11() in front of plot();
> such as
> x11()
> Plot(v1)
> x11()
> Plot(v2)
> ......
> then R will open multi windows for you
>
> Chunhao
>
>
>
> Quoting Alessandro <alessandro.montaghi_at_unifi.it>:
>
> Ciao All
>
>
>
> I'd like to generate 4 windows plot to compare different relationship at the
> same time in R. Each plot code is :
>
>
>
> Plot(v1)
>
> Plot(v2)
>
> Plot(v4)
>
> Plot(v4)
>
>
>
> But I did not find a right code in R.
>
>
>
> Ale
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> and provide commented, minimal, self-contained, reproducible code.
>
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> and provide commented, minimal, self-contained, reproducible code.
>
>
>
>
> --
> Let's not spend our time and resources thinking about things that are so
> little or so large that all they really do for us is puff us up and make us
> feel like gods. We are mammals, and have not exhausted the annoying little
> problems of being mammals.
>
> -K. Mullis
>
>

R-help_at_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. Received on Fri 25 Jul 2008 - 20:47:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Jul 2008 - 21:32:59 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.