[R] RE: Mixing text and graphics in PDF

Wright, Kevin kevin.wright at pioneer.com
Thu Nov 21 21:33:31 CET 2002

I guess I should have emphasize the word "easy" in the original post.  I am
aware of Sweave and have used it to produce terrific quality output, but it
takes quite a bit of effort to get that quality (setting up tex document,
erasing previous graphics, running the script, tex'ing the output, etc).

HTML code with separate graphic images seems even more work.

I was hoping for a non-presentation quality way to dump both graphics and
text straight from R into pdf file using the pdf() device.  Something akin
to the way a Mathematica or Maple session looks like.

Wouldn't it be nice, for example, to fit a linear model, then send both the
residual plots and the anova table straight to the PDF file for easy storage
in a single document?  Doesn't need to need to be fancy.

The idea of a Mathematica-style transcript session is quite appealing to me
the more I think about it, but might be too-much work for the R community to
create.  Even the commercial software S-Plus lacks such reporting
capabilities.  Think--"summary" methods could produce text AND graphics--an
intriguing idea.

Kevin Wright

>  -----Original Message-----
> From: 	Wright, Kevin  
> Sent:	Thursday, November 21, 2002 12:16 PM
> To:	'r-help at stat.math.ethz.ch'
> Subject:	Mixing text and graphics in PDF
> Is there an easy way to "sink" text output to a pdf file 
> using the pdf() device?
> Here's an email that describes setting up empty graphics 
> plots and then using the "text" command to put text on page:
> http://www.r-project.org/nocvs/mail/r-help/2002/5598.html
> I'm just looking for something a little more polished -- 
> automatic page breaks, line wrapping, etc.
> Kevin Wright, Research Scientist
> Pioneer Hi-Bred Int'l, x4054.

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list