On 30-Jun-09 16:48:15, Barry Rowlingson wrote:
> To keep track, call dev.cur() after creating a new plot
> and assign it to something memorable. Here's how to keep
> a histogram and an xy plot:
> 
>> dev.new();histPlot = dev.cur()
>> dev.new();xyPlot = dev.cur()
>> dev.set(histPlot);hist(runif(100))
> X11cairo
>        2
>> dev.set(xyPlot);plot(1:10)
> X11cairo
>        3
> 
> You just have to remember to call dev.set before your particular plot.
> 
> Barry

Barry, spot on! If there were a prize for postings with
simplicity, clarity, conciseness and usability, I would nominate
yours (especially in the "Why didn't *I* think of that?" category).

Cheers,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.hard...@manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 30-Jun-09                                       Time: 18:33:40
------------------------------ XFMail ------------------------------

______________________________________________
R-help@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.

Reply via email to