From ihaka@stat.auckland.ac.nz  Sun Dec  6 21:03:59 1998
From: ihaka@stat.auckland.ac.nz (Ross Ihaka)
Date: Mon,  7 Dec 1998 10:03:59 +1300 (NZDT)
Subject: Saving and replaying plots
In-Reply-To: <19981206205254.A778@sirio.stat.unipd.it>
References: <199812061857.HAA24850@stat1.stat.auckland.ac.nz>
 <19981206205254.A778@sirio.stat.unipd.it>
Message-ID: <13930.60958.724981.734442@g.ihaka.slip.auckland.ac.nz>

Guido Masarotto writes:
 >   I don't know if this can help. But, I was thinking about the possibility
 >   to recall previously done plot during the same session not
 >                                             ~~~~
 >   between sessions.					    
 >   Typical usages that I have in mind: 
 >   1) do a plot, do some others to explore how something can be represented, 
 >      going back to the first  (or some other before), decide to add
 >      something to the third, final choice for it, add to it final
 >      details (e.g. legend, change color,...), print it.
 >   2) teaching: students work in a labs for sometimes, 
 >      I can review what they have done 
 >      (Ok, there are other solutions,i.e, they save plots in a postscript
 >      file and I review the file, but it would be very nice to do this
 >      from inside R without re-issuing all the commands again).
 >   3) .....................

Do you have multiple graphics windows in your version?  You could
just spawn a new graphics window, experiment for a bit and then
go back to the original to continue there.

The display list can be stored as an ordinary R data stucture,
son there is no difficulty in saving and restoring between sessions
once you are able to get it from the device driver.

I've been wondering it it might be possible to edit the display list
before replaying it.  There are a lot of cool things that would be
possible then...
	Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Saving and replaying plots
Ross Ihaka