[R] pdf files in loops
Sam Thomas
sam.thomas at revelanttech.com
Thu Apr 1 04:34:45 CEST 2010
Have you tried
plot(pic)
-----Original Message-----
From: Berwin A Turlach <berwin at maths.uwa.edu.au>
Sent: Wednesday, March 31, 2010 10:15 PM
To: James Rome <jamesrome at gmail.com>
Cc: r-help at r-project.org <r-help at r-project.org>
Subject: Re: [R] pdf files in loops
On Wed, 31 Mar 2010 22:06:48 -0400
James Rome <jamesrome at gmail.com> wrote:
> print() did not help, and I get strange messages about mode(onefile)
> not being changed:
Either:
R> pic <- histogram(...)
R> print(pic)
or
R> print(histogram(...))
> I would actually like all the histograms in one pdf file too...
Then move the pdf() and the dev.off() commands outside the loop.
HTH.
Cheers,
Berwin
______________________________________________
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