[R] How to plot a blank plot
Duncan Murdoch
dmurdoch at pair.com
Sat Feb 14 17:10:31 CET 2004
On Fri, 13 Feb 2004 12:11:26 -0800, you wrote:
>Hello everyone,
>
>In plotting several graphics, I'd like to be able to plot a blank plot
>as in:
>
>par(mfrow=c(2,1))
>plot(BLANK)
>hist(rgamma(100000,6463.7,scale=0.015471),xlim=c(0,120),main="Emergence")
>
>I realize screen allows me to do this, but I figure the functionality
>must be there. Is there an equivalent to plot(BLANK)?
"frame()" is probably what you want.
You can also get a blank plot (but set up coordinates, etc.) with
something like
plot(1, type="n", axes=F, xlab="", ylab="")
This would allow you to plot points and lines and text in the empty
space; frame() would not.
Duncan Murdoch
More information about the R-help
mailing list