Skip to content

Bug or not

2 messages · Darius Kasiulevičius, Ben Bolker

#
I have this sample from help. I try use command erase.screen() but in 
split mode sreen dont erase. Why?

split.screen(c(2,1)) # split display into two screens
split.screen(c(1,2),2) # split bottom half in two
plot(1:10) # screen 3 is active, draw plot
erase.screen() # forgot label, erase and redraw         IN THIS PLACE 
SCREEN DONT ERASE
plot(1:10, ylab= "ylab 3")                                       IN THIS 
PLACE COMMAND PLOT ON TOP
screen(1) # prepare screen 1 for output
2 days later
#
Darius Kasiulevi?ius wrote:
Not a bug.

 From the documentation:

 'erase.screen' will appear not to work if the background colour is
     transparent (as it is by default on most devices).

So make sure to specify par(bg="white") first, as in the example
given in the documentation ...

 Ben Bolker