[R] Graphics device history recording problem (Previous and Next utilities)

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 21 14:54:00 CEST 2003

On Wed, 21 May 2003, Masayoshi Hayashi wrote:

> I use 1.7.0 version under Windows XP.
> Problem:
> When graphics device history recording function turned
> on, suppose I source a file containing lines:
> plot(graph1)
> plot(graph2)
> I see the graph2 in the graphic device, assuming
> graph2 is the last plot in the file. Now using
> "Previous" under history menu, I get graph1 as
> expected. But after that, using "Next" does not show
> graph2. Is this a normal behavior? If so how do you
> get back to graph2? I have observed the same behavior
> in 1.6.2.

R does not know the plot is finished until you go on to the next one.
So you have to explicitly add the current state of the current plot to the 
history, when it will work.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list