[R] Graphic Device - View/get all graphics

Greg Snow Greg.Snow at imail.org
Tue Nov 24 19:17:51 CET 2009


There are multiple ways, some are OS specific (and I don't see where you told us that).

Some things to try:

par(ask=TRUE)

# or

pdf('tempfile.pdf')
yourfunctionhere()
dev.off()

# or

par(mfrow=c(2,2))

# or 

Windows(record=TRUE)

# or

Look at the help for the function creating the plots, some have options to produce a specified plot, the default is multiple ones.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of MarcioRibeiro
> Sent: Tuesday, November 24, 2009 9:52 AM
> To: r-help at r-project.org
> Subject: [R] Graphic Device - View/get all graphics
> 
> 
> Hi Listers,
> I am producing some graphics that the commands are in a FUNCTION...
> The problem is that I end up viewing just last graphic and in my
> FUNCTION
> there are 4 graphics with the PAR command function... Like those
> below...
> How do I view/get the other 3 graphics? Any help?
> Thanks in advance...
> 
> histogram<-par(mfrow=c(1,2))
> hist(rw_mean_app,main='Bootstrap Method RWOriginal',xlab='Mean',ylab='
> ')
> hist(rwy_mean_app,main='Bootstrap Method RWY',xlab='Mean',ylab=' ')
> par(histogram)
> 
> histogram<-par(mfrow=c(1,3))
> hist(rw_median_app_ori,main='Bootstrap Method
> RWOriginal',xlab='Median',ylab=' ')
> hist(rw_median_app_mod,main='Bootstrap Method
> RWModified',xlab='Median',ylab=' ')
> hist(rwy_median_app,main='Bootstrap Method RWY',xlab='Median',ylab=' ')
> par(histogram)
> 
> --
> View this message in context: http://old.nabble.com/Graphic-Device---
> View-get-all-graphics-tp26498560p26498560.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.




More information about the R-help mailing list