Here are some options (none direct, but all would get you there).

Create the html document using hwriter (it seems you know how to do that) then 
convert/print to pdf, openoffice may be able to do the conversion, or you can 
install cutepdf as a printer and print to that.

Use sweave as has been mentioned to create a LaTeX document and process to pdf

Use the odfWeave package and use openoffice to save the result as pdf

Use the etxtStart function and friends from the Teachingdemos package then use 
enscript to create postscript document and ps2pdf to convert to pdf

Use the pdf function with arguments to create the page the size you want, use 
layout to divide it, "plot" the text of interest into one section, plot the 
graph to the next section.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Dimitri Shvorob
> Sent: Monday, January 18, 2010 11:34 AM
> To: r-help@r-project.org
> Subject: Re: [R] exporting text output to pdf
> 
> 
> Let's revisit my fist post
> 
> How can I get a normal-font-sized 'Hello world' displayed on a page,
> with a
> plot underneath, instead of a giant 'Hello world' on one page, and a
> plot on
> another?
> 
> Then
> 
> The goal is to produce a proper-looking PDF *document* with text and
> images
> - similar to what I could do in HTML with hwriter package.
> 
> Document as opposed to annotated plot.
> 
> There is the difficulty of defining, specifically, a 'proper document',
> and
> not everyone is familiar with hwriter. How about this: I want an
> interface
> in which commands like
> 
> page = pdf(..)
> print(page, "some text")
> printImage(page, "someimage.jpg")
> close(page)
> 
> would produce a one-page PDF document with a line of text and a
> picture.
> 
> --
> View this message in context: http://n4.nabble.com/exporting-text-
> output-to-pdf-tp837699p1016930.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help@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@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.

Reply via email to