[R] Possible bug in screen ?
Dieter Menne
dieter.menne at menne-biomed.de
Sun Nov 23 16:20:55 CET 2008
_ <Cyrix333 <at> gmx.net> writes:
> after choosen the plot in witch I want to draw a point, just the first
> plot draws the point
> Is it a bug or just a user-problem ?
>
> Example :
> split.screen(c(2,1))
> screen(1)
> plot(1:10)
> screen(2)
> plot(10:100)
>
> screen(n=1, new=F)
> points(4,3, col="red")
> screen(n=2, new=F)
> points(20,20, col="red")
>
> screen(n=1, new=F)
> points(6,6, col="red")
> screen(n=2, new=F)
> points(80,80, col="red")
>
It is an unpredictability:
Warnings
The recommended way to use these functions is to completely draw a plot and all
additions (i.e. points and lines) to the base plot, prior to selecting and
plotting on another screen. The behavior associated with returning to a screen
to add to an existing plot is unpredictable and may result in problems that are
not readily visible.
More information about the R-help
mailing list