[R] Graphics question

Peter Hovmand hovmandp at msu.edu
Sat May 18 09:04:16 CEST 2002

I'm learning R and having some trouble clearing a screen. I'm 
using Version 1.5.0 and have encountered the same problem under Linux (RH7.2) 
and Windows (2K). For example:

> split.screen(c(2,2))
> plot(1:10)
> screen(2)
> plot(10:1)
> erase.screen(1)
> screen(1)
> plot(10:1)

What should I be expecting to happen? At the moment, it overlays the plots on 
screen 1. I've run through the example in the documentation under screen and 
it also seems to overlay plots. I've also tried setting new=TRUE when setting 
the screen, but that hasn't helped. What I would like to do (and was 
expecting) was that a new plot would clear that particular screen (e.g. 
screen 1 in the example above) instead of overlaying it.  

Most of the other things that I've tried have worked nicely. Any help would 
be appreciated. Perhaps there is a better text/reference for this specific 



r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list