[R] R: graphics devices

Clark Allan Allan at STATS.uct.ac.za
Fri Jul 29 13:43:38 CEST 2005


one could use the par command to plot several plots on 1 graphics
device.

i would like to do the following:

say plot(y~x) on one screen and then

plot(q~w) on another screen so that one can see both of them together
but not on the same graphics device.

Sean O'Riordain wrote:
> 
> Alan,
> I'm not sure what you mean...
> 
> perhaps
> 
> plot(y~x) # to the screen
> pdf("myplot.pdf")
> plot(y~x) # write the plot to the file
> dev.off() # close the file
> dev.off() # close the graphics window
> 
> s/
> 
> On 29/07/05, Clark Allan <Allan at stats.uct.ac.za> wrote:
> > a simple question
> >
> > how does one produce plots on two different graphics devices?
> >
> > /
> > allan
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> >
> >


More information about the R-help mailing list