hi there, Is there any function to append the pdf file. I want to write in a pdf file some 100 plots(in one single pdf containing 100 plots) while all the plot are created using a for loop. I can create 100 pdf one for each for each plot using a for loop but i want only one pdf with 100 plots. Ramya -- View this message in context: http://www.nabble.com/PDF-append-help-tp18835069p18835069.html Sent from the R help mailing list archive at Nabble.com.
Hi Ramya, Perhaps pdf("C:/100plots.pdf") for(i in 1:100) plot(rnorm(10), type='b', main='My 100 plots') dev.off() HTH, Jorge On Tue, Aug 5, 2008 at 12:41 PM, Rajasekaramya <ramya.victory@gmail.com>wrote:> > hi there, > > Is there any function to append the pdf file. > > I want to write in a pdf file some 100 plots(in one single pdf containing > 100 plots) while all the plot are created using a for loop. > > I can create 100 pdf one for each for each plot using a for loop but i want > only one pdf with 100 plots. > > Ramya > -- > View this message in context: > http://www.nabble.com/PDF-append-help-tp18835069p18835069.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
Hi, just don't turn if off immediately, see example below: Cheers, Gary # example pdf(file="/home/user/tmp/moreplots.pdf") for (i in 1:5) plot(rnorm(100)) dev.off() -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Rajasekaramya Sent: Tuesday, August 05, 2008 12:42 PM To: r-help at r-project.org Subject: [R] PDF append help hi there, Is there any function to append the pdf file. I want to write in a pdf file some 100 plots(in one single pdf containing 100 plots) while all the plot are created using a for loop. I can create 100 pdf one for each for each plot using a for loop but i want only one pdf with 100 plots. Ramya -- View this message in context: http://www.nabble.com/PDF-append-help-tp18835069p18835069.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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. -------------------------------------------------------- This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
Just put all the commands within the pdf()- dev.off() ? --- On Tue, 8/5/08, Rajasekaramya <ramya.victory at gmail.com> wrote:> From: Rajasekaramya <ramya.victory at gmail.com> > Subject: [R] PDF append help > To: r-help at r-project.org > Received: Tuesday, August 5, 2008, 12:41 PM > hi there, > > Is there any function to append the pdf file. > > I want to write in a pdf file some 100 plots(in one single > pdf containing > 100 plots) while all the plot are created using a for loop. > > I can create 100 pdf one for each for each plot using a for > loop but i want > only one pdf with 100 plots. > > Ramya > -- > View this message in context: > http://www.nabble.com/PDF-append-help-tp18835069p18835069.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.
On Tue, 5 Aug 2008, Rajasekaramya wrote:> Is there any function to append the pdf file. > > I want to write in a pdf file some 100 plots(in one single pdf containing > 100 plots) while all the plot are created using a for loop. > > I can create 100 pdf one for each for each plot using a for loop but i want > only one pdf with 100 plots.For those in a *nix environment, I saw this project cross my review list earlier this week: http://microtronyx.com/pdfmerge/ which satisfies the stated requirement. Not within the four corners of R, though. -- Russ herrold