[R] Fw: Plotting in subareas using par(fig=) parameter

Rex_Bryan@urscorp.com RexBryan1 at attbi.com
Thu Feb 6 18:24:02 CET 2003


Any idea why I can no longer plot two graphs on the same graphics device
using the par(fig=) parameter?
A simpler par(mfrow=c(1,2)) does work, showing the two plots side-by-side,
but I would like the first
to be larger.   This simple example fails:


x<-c(1,1,NA,2,2,NA,3,3)
y<-c(2,4,NA,3,5,NA,1,4)

par(fig=c(0,2/3,0,1))
plot(x,y)

par(fig=c(2/3,1,0,1))
qqnorm(x)

When plotted, the last figure qqnorm(x) is alone on the graphics display.
The first figure plot(x,y) disapears.
I'm even more puzzled in that I'm sure that I had this type of command
working before.

REX




More information about the R-help mailing list