Re: [R] pdf files in loops

2010-04-01 Thread Paul Hiemstra
James Rome wrote: On 3/31/2010 10:01 PM, Berwin A Turlach wrote: G'day James, On Wed, 31 Mar 2010 21:44:31 -0400 James Rome wrote: I need to make a bunch of PDF files of histograms. [...] What am I doing wrong? http://cran.ms.unimelb.edu.au/doc/FAQ/R-FAQ.html#Why-d

Re: [R] pdf files in loops

2010-04-01 Thread Sam Thomas
Have you tried plot(pic) -Original Message- From: Berwin A Turlach Sent: Wednesday, March 31, 2010 10:15 PM To: James Rome Cc: r-help@r-project.org Subject: Re: [R] pdf files in loops On Wed, 31 Mar 2010 22:06:48 -0400 James Rome wrote: > print() did not help, and I get stra

Re: [R] pdf files in loops

2010-03-31 Thread Berwin A Turlach
On Wed, 31 Mar 2010 22:06:48 -0400 James Rome 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

Re: [R] pdf files in loops

2010-03-31 Thread James Rome
On 3/31/2010 10:01 PM, Berwin A Turlach wrote: G'day James, On Wed, 31 Mar 2010 21:44:31 -0400 James Rome wrote: > I need to make a bunch of PDF files of histograms. > [...] > What am I doing wrong? > http://cran.ms.unimelb.edu.au/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-

Re: [R] pdf files in loops

2010-03-31 Thread James Rome
On 3/31/2010 10:01 PM, Berwin A Turlach wrote: G'day James, On Wed, 31 Mar 2010 21:44:31 -0400 James Rome wrote: > I need to make a bunch of PDF files of histograms. > [...] > What am I doing wrong? > http://cran.ms.unimelb.edu.au/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-

Re: [R] pdf files in loops

2010-03-31 Thread Berwin A Turlach
G'day James, On Wed, 31 Mar 2010 21:44:31 -0400 James Rome wrote: > I need to make a bunch of PDF files of histograms. [...] > What am I doing wrong? http://cran.ms.unimelb.edu.au/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f HTH. Cheers, Berwin =

[R] pdf files in loops

2010-03-31 Thread James Rome
I need to make a bunch of PDF files of histograms. I tried gatelist = unique(mdf$ArrivalGate) for( gate in gatelist) { outfile = paste("../", airport, "/", airport, "taxiHistogram", gate, ".pdf", sep="") pdf(file = outfile, width = 10, height=8, par(lwd=1)) title=paste("Taxi tim