[R] Include externally generated pdf in output (without Sweave)

Greg Snow Greg.Snow at imail.org
Mon Oct 4 20:39:26 CEST 2010


Importing as pixel image then replotting will probably reduce the quality of the graph.  Another approach is to use the pdftk program (I have seen versions for unix and windows) to add/insert the original pdf page into your document.

-- 
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 Dieter Menne
> Sent: Sunday, October 03, 2010 7:39 AM
> To: r-help at r-project.org
> Subject: Re: [R] Include externally generated pdf in output (without
> Sweave)
> 
> 
> 
> Tal Galili wrote:
> >
> > You could potentially read an image file (like, for example, tiff)
> using
> > something like
> > read.picture {SoPhy}
> >
> 
> Thanks to you and Baptiste Auguie. Looks like the best way would be to
> import the picture as a pixel graphics with "read.picture". It might be
> possible to read ps with grImport (Murells/suggested by Baptiste), but
> I
> always found the postscript-detour messy.
> 
> Dieter
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Include-
> externally-generated-pdf-in-output-without-Sweave-
> tp2953057p2953182.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.



More information about the R-help mailing list