[R] How to plot a blank plot

Don MacQueen macq at llnl.gov
Fri Feb 13 22:31:04 CET 2004


And although frame() is obviously the better way, if you really 
wanted to know what to put inside plot(), this will do it:

    plot(1, type='n', xaxt='n', yaxt='n', xlab='', ylab='', bty='n')

-Don

At 12:41 PM -0800 2/13/04, Adrian Custer wrote:
>frame() it is!
>
>I suspected there would be something simple. :-)
>
>Thanks everyone.
>
>--adrian
>
>On Fri, 2004-02-13 at 12:28, Chuck Cleland wrote:
>>  Adrian Custer wrote:
>>
>>  > 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)?
>>
>>  par(mfrow=c(2,1))
>>  frame()
>>  hist(rgamma(100000,6463.7,scale=0.015471),xlim=c(0,120),main="Emergence")
>>
>>  see ?frame
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA




More information about the R-help mailing list