[R] Further png() question

Sean Davis sdavis2 at mail.nih.gov
Tue Sep 7 16:46:07 CEST 2004


Are you calling png before your par command--I think you should.

 > png (file='filename')
 > par(mfrow=c(1,4))
 > plot(1:10)
 > plot(1:10)
 > plot(1:10)
 > plot(1:10)
 > dev.off()

See if that works for you.

Sean

On Sep 7, 2004, at 10:37 AM, Laura Quinn wrote:

> Ok, I have reinstalled R-1.9.0 and this appears to have fixed the
> problems I was having with png(). However, I have a further question
> regarding png()
>
> Is it possible to pass a par() argument to the png() command? I am
> wanting to produce 4 plots per object, which I normally acheive on an X
> window by par(mfrow=c(1,4)). I have tried calling a new plot and 
> setting
> par in this way but this has no bearing when I call png().
>
> Any suggestions?
>
> Thanks in advance,
>
> Laura Quinn
> Institute of Atmospheric Science
> School of Earth and Environment
> University of Leeds
> Leeds
> LS2 9JT
>
> tel: +44 113 343 1596
> fax: +44 113 343 6716
> mail: laura at env.leeds.ac.uk
>
> ______________________________________________
> 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




More information about the R-help mailing list