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 [EMAIL PROTECTED] wrote:
a simple question
how does one produce plots on
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
Eventually one way:
With X11() you can open additional graphic devices.
x - rnorm(100)
y - x + runif(100)
plot(x)
X11()
plot(x,y)
Best,
Matthias
a simple question
how does one produce plots on two different graphics devices?
/
allan
__
Is this on windows? If so, how about the following:
windows()
plot(y~x)
windows()
plot(q~x)
For me, this creates two different plot _windows_ and you could tile
them to see each side-by-side. But I'm not sure how that would be
preferable to having the plots in the same window.
actually X11() also works under windows!
X11()
plot(y~x)
X11()
plot(q~x)
On 29/07/05, Chuck Cleland [EMAIL PROTECTED] wrote:
Is this on windows? If so, how about the following:
windows()
plot(y~x)
windows()
plot(q~x)
For me, this creates two different plot _windows_ and
Hi Allan,
in case of many plots in the same window you can try this:
options(graphics.record=TRUE)
plot(x)
plot(x,y)
with PgUp and PgDn you check both in the same window.
I hope this helps.
Roula
=
Spyridoula Tsonaka
Doctoral Student
Biostatistical Centre
Catholic University
That's interesting,how can I see the help document of graphics.record option?
I use ?options ,but can not find anything about it.
Hi Allan,
in case of many plots in the same window you can try this:
options(graphics.record=TRUE)
plot(x)
plot(x,y)
with PgUp and PgDn you check both in the same
I'd suggest starting with the documentation. See
?Devices
and then look at some of the other functions referenced in the See
Also section of ?Devices.
Basically, you produce plots on two different graphics devices by
this sequence:
1) open a graphics device
2) produce a plot
3)
This is for Windows only, and documented in
?windows
README.rw2011 (or whatever)
It's more usual to switch recording on when you need it, either in the
windows() call or from a menu.
?options only tells you about the standard options, not those used on
specific platforms or by packages (and
:09 AM
To: ronggui
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] R: graphics devices
This is for Windows only, and documented in
?windows
README.rw2011 (or whatever)
It's more usual to switch recording on when you need it,
either in the
windows() call or from a menu.
?options only
10 matches
Mail list logo