[R] Sink does not send graphs to sink file
Greg.Snow at imail.org
Fri Dec 5 18:45:43 CET 2008
Others mentioned Sweave, which is the best way to go if you have a planned set of routines to do. If you are more just playing and want a transcript of what you are doing (unpreplanned) that includes graphics in the final version, then look at etxtStart from the TeachingDemos package. You will need to postproccess the file using enscript (and optionally ps2pdf), but then you will end up with a file including both the text and the graphics.
Note: using the current version (new one due soon) with R2.8 generates some warnings that can be ignored.
Hope this helps,
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of John Sorkin
> Sent: Friday, December 05, 2008 8:15 AM
> To: r-help at r-project.org
> Subject: [R] Sink does not send graphs to sink file
> Wiindows XP
> R 2.7
> I am using sink() to send the results of my analyses to a text file.
> Unfortunately my graphs do not become part of the file. Is there anyway
> that I can have both the text and graphic output of my analyses appear
> in a file?
> John David Sorkin M.D., Ph.D.
> Chief, Biostatistics and Informatics
> University of Maryland School of Medicine Division of Gerontology
> Baltimore VA Medical Center
> 10 North Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
> (Phone) 410-605-7119
> (Fax) 410-605-7913 (Please call phone number above prior to faxing)
> Confidentiality Statement:
> This email message, including any attachments, is for
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help