Have you tried plot(pic) -----Original Message----- From: Berwin A Turlach <ber...@maths.uwa.edu.au> Sent: Wednesday, March 31, 2010 10:15 PM To: James Rome <jamesr...@gmail.com> Cc: r-help@r-project.org <r-help@r-project.org> Subject: Re: [R] pdf files in loops
On Wed, 31 Mar 2010 22:06:48 -0400 James Rome <jamesr...@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@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. ______________________________________________ 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.