Re: [R] save program results and graphs to one file

2015-02-02 Thread Sergio Fonda
With a little effort you could implement Rstudio and try RMD (R Markdown) it is very proficient, look at https://support.rstudio.com/hc/en-us/articles/200552086-Using-R-Markdown Il 01/feb/2015 21:07 Ragia Ibrahim ragi...@hotmail.com ha scritto: Dear group, I have many plots and numeric

Re: [R] save program results and graphs to one file

2015-02-02 Thread Jim Lemon
Hi Ragia, There are also the R2HTML and prettyR (see htmlize) packages that will output an R session in HTML format. Jim On Mon, Feb 2, 2015 at 10:51 AM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: If you're happy with outputting to a multi-page PDF, then you can just set the default

[R] save program results and graphs to one file

2015-02-01 Thread Ragia Ibrahim
Dear group, I have many plots and numeric results in my R program, kindly how can I save them all sequently on one file. thanks in advance RAI [[alternative HTML version deleted]] __

Re: [R] save program results and graphs to one file

2015-02-01 Thread Bert Gunter
But in addition to what Jeff noted, see ?save and ?save.image (noting that that the resulting .Rdata file can only be read by R). Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 Data is not information. Information is not knowledge. And knowledge is certainly not

Re: [R] save program results and graphs to one file

2015-02-01 Thread Henrik Bengtsson
If you're happy with outputting to a multi-page PDF, then you can just set the default graphics device to pdf(), i.e. options(device=pdf) and the start plotting: plot(1:10, col=0) plot(10:1, col=1) plot((1:10)^2, col=2) plot((10:1)^2, col=3) and at the end make sure to close the device:

Re: [R] save program results and graphs to one file

2015-02-01 Thread Jeff Newmiller
In general this depends what you plan to do with those results. I suspect you are looking for something like knitr with rmarkdown (.Rmd files to create HTML or Word) or LaTeX (.Rnw files to create PDF). --- Jeff Newmiller