Re: [R] How to change name of pdf output of function windRose in openair package

2015-11-07 Thread Stefano Sofia
> -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jim > Lemon > Sent: Thursday, November 05, 2015 12:25 PM > To: Stefano Sofia > Cc: r-help@r-project.org > Subject: Re: [R] How to change name of pdf output of function windRose > in o

Re: [R] How to change name of pdf output of function windRose in openair package

2015-11-05 Thread PIKAL Petr
iginal Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jim > Lemon > Sent: Thursday, November 05, 2015 12:25 PM > To: Stefano Sofia > Cc: r-help@r-project.org > Subject: Re: [R] How to change name of pdf output of function windRose > in openair pack

Re: [R] How to change name of pdf output of function windRose in openair package

2015-11-05 Thread Jim Lemon
Hi Stefano, Just start the PDF device, do the plot, then close the PDF device: library(openair) ... data(mydata) pdf("windRose.pdf") windRose(mydata) dev.off() This is from the first example for the windRose function. It will produce a file named "windRose.pdf" in the working directory of R. Jim

[R] How to change name of pdf output of function windRose in openair package

2015-11-05 Thread Stefano Sofia
Dear r-list users, I am using windRose within the openair package. Automatically the wind rose is saved in a pdf file called Rplots.pdf . I need to apply this function to different data frames, and each time I need to change automatically the name of the pdf output. I am not able to do it, I read