Hello , could anyone answer for the following question for me: I am using R 2.0.1 under Windows XP. I want to write a function that makes four graphs and stores each of them in graphics history. When the function finishes, in other words, I want its graphical output to be stored in a way that I can look at it using PgUp and PgDn. I think I need commands I can put in a function that --clear graphics history --either turn on graphics history recording or store the current graph Can anyone explain how to do this? Thank you so much C-Ming Feb 15, 2005 --------------------------------- [[alternative HTML version deleted]]
options(graphics.record=TRUE) turns on graphics recording. This can also be done from the History menu of the graphics window. All subsequent plots to the graphics device will be saved. -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze the scientific learning process." - George E. P. Box> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Cuichang Zhao > Sent: Tuesday, February 15, 2005 2:36 PM > To: r-help at stat.math.ethz.ch > Subject: [R] Could anyone answer for the following question > > > Hello , > could anyone answer for the following question for me: > > > I am using R 2.0.1 under Windows XP. I want to write a function that > makes four graphs and stores each of them in graphics > history. When the > function finishes, in other words, I want its graphical output to be > stored in a way that I can look at it using PgUp and PgDn. I > think I need > commands I can put in a function that > > --clear graphics history > --either turn on graphics history recording or store the current graph > > Can anyone explain how to do this? > > > Thank you so much > > C-Ming > > Feb 15, 2005 > > > --------------------------------- > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
Gabor Grothendieck
2005-Feb-15 23:48 UTC
[R] Could anyone answer for the following question
Cuichang Zhao <cuiczhao <at> yahoo.com> writes: : I am using R 2.0.1 under Windows XP. I want to write a function that : makes four graphs and stores each of them in graphics history. When the : function finishes, in other words, I want its graphical output to be : stored in a way that I can look at it using PgUp and PgDn. I think I need : commands I can put in a function that : : --clear graphics history : --either turn on graphics history recording or store the current graph windows(record = TRUE) will turn on windows graphics history and savePlot will save a windows plot in a file. You can also turn it on manually by clicking on the graphics window and making sure History | Record is checked. (Its also possible to save the low level graphics that R displays using the displaylist and you can search r-help for more info on 'displaylist' but I don't think that is what you are looking for.)