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.

Reply via email to