Skip to content
Back to formatted view

Raw Message

Message-ID: <OF93F5D876.EE11522C-ON80257516.0055DC1E-80257516.00565180@hsl.gov.uk>
Date: 2008-12-05T15:42:46Z
From: Richard Cotton
Subject: Sink does not send graphs to sink file
In-Reply-To: <4938FF17.91DF.00CB.0@grecc.umaryland.edu>

> 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?

You can create a latex document with text, graphs and R-code using 
?Sweave.  If you prefer to write to Open document format , there is an 
Odfweave package.

The other alternative is simply writing your graphs to files (or one file 
with all the graphs), e.g.
pdf("test.pdf")
plot(1:10)
hist(rnorm(100))
dev.off()

Regards,
Richie.

Mathematical Sciences Unit
HSL


------------------------------------------------------------------------
ATTENTION:

This message contains privileged and confidential inform...{{dropped:20}}