Re: [R] writing a table in the device (pdf in this case)

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Mon, 12 May 2008 14:01:46 -0600

You probably want to look at "Sweave" in the "utils" package or the "odfWeave" package.

Both let you set up a planned set of commands interspersed with text (notes, explanations, full report, etc.) and then you process the file and get the output (and commands) in either a LaTeX file or an OpenOffice writer document, either of which can then be processed to a pdf file. Both give several options for what input/output to return, inclusion of tables and graphs, and much more.

Hope this helps,

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow_at_imail.org
(801) 408-8111




> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Julien Colomb
> Sent: Saturday, May 10, 2008 9:47 AM
> To: r-help_at_r-project.org
> Subject: [R] writing a table in the device (pdf in this case)
>
> hello all,
> I would like to introduce a summary table into the pdf along
> with the plots (in order to archive my data into single files
> automatically).
> Similarly, It would be great to have the result of the
> statistical analysis (for instance anova) in the same file.
>
> Is there a way to do that?
>
>
> example:
> pdf("example.pdf")
> layout (matrix(1:2,1,2))
> plot (groups, scores)
>
> Result <- cbind (samplesize, mean_score, sem_score)
> #calculated before ???
>
> dev.off ()
> --
> _______________________________________________
>
> Dr. Julien Colomb
>
> Genes et Dynamique des Systemes de Memoire CNRS UMR 7637
> ESPCI 10 rue Vauquelin
> 75005 Paris
> France
> www.gdsm.espci.fr
>
> tel +33 (0)1 40 79 51 23
> fax +33 (0)1 40 79 52 29
>
> AIM (ichat) or skype: thrawny1
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
______________________________________________ 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.
Received on Mon 12 May 2008 - 20:04:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 12 May 2008 - 20:32:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive