dear useRs and developeRs, I am afraid it is a very basic question, but I did not find anything alike in the literature. The R standard graphics device shows the opportunity to activate the history of plots drawn within the current session. Th user can scroll back and see the last graphs (or same graph with some changes in parameters). I did not find out yet how to activate the history by code. Any ideas? Thanks and best regards, Norbert -- ********************************************************** Mag. Norbert Neuwirth ?sterreichisches Institut f?r Familienforschung (?IF) - Universit?t Wien Austrian Institute for Family Studies - University of Vienna http://www.oif.ac.at e-mail: norbert.neuwirth at oif.ac.at tel: +43-1-4277-489-11 fax: +43-1-4277-9-489 address: A-1010 Wien, Grillparzerstra?e 7/9
On windows you can go to the graphics window; click history -> recording. You may also want to have a look at recordPlot() and replayPlot(). Regards S?ren ________________________________ Fra: r-help-bounces at r-project.org p? vegne af Norbert NEUWIRTH Sendt: ma 21-04-2008 10:59 Til: r-help at r-project.org Emne: [R] graphics history dear useRs and developeRs, I am afraid it is a very basic question, but I did not find anything alike in the literature. The R standard graphics device shows the opportunity to activate the history of plots drawn within the current session. Th user can scroll back and see the last graphs (or same graph with some changes in parameters). I did not find out yet how to activate the history by code. Any ideas? Thanks and best regards, Norbert -- ********************************************************** Mag. Norbert Neuwirth ?sterreichisches Institut f?r Familienforschung (?IF) - Universit?t Wien Austrian Institute for Family Studies - University of Vienna http://www.oif.ac.at <http://www.oif.ac.at/> e-mail: norbert.neuwirth at oif.ac.at tel: +43-1-4277-489-11 fax: +43-1-4277-9-489 address: A-1010 Wien, Grillparzerstra?e 7/9 ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
On 21/04/2008 4:59 AM, Norbert NEUWIRTH wrote:> dear useRs and developeRs, > > I am afraid it is a very basic question, but I did not find anything alike in the literature. > > The R standard graphics device shows the opportunity to activate the history of plots drawn within the current session. Th user can scroll back and see the last graphs (or same graph with some changes in parameters). I did not find out yet how to activate the history by code. Any ideas?When you open the window, use windows(record=TRUE). If you want this to happen by default, write your own wrapper for the windows() graphics device: windows <- function(..., record=TRUE) grDevices::windows(..., record=record) One thing I'd like to do, but didn't have time to implement before 2.7.0, is to have history set to some finite size, e.g. a default might be the last 3 or 10 plots. The problem with record=TRUE is that it keeps a record of all the plots, so memory use just increases and increases. Duncan Murdoch