[R] Mixing text and graphics in PDF
Mike Nielsen
miken at bigpond.net.au
Thu Nov 21 19:46:43 CET 2002
Hi, Kevin.
In my view, the answer to your question depends, at least in part, on
what you want to use the pdf file for.
You may find that the conventional way of creating a pdf file with mixed
text and graphics is to use LaTeX. You can then either output your
graphics from R in LaTeX format, or write them directly to pdf, which
you then import into your LaTeX document (a technique that seems to
produce very nice results). You can then render your LaTeX document in
pdf. To do publication-quality stuff, this is almost certainly your best
bet.
If your text consists of tabular information, you may be able to do
something like: render the graphics into some convenient format such as
png or jpg; output your tables in HTML; merge the two; render the lot
into pdf. But you may struggle coming to the quality of rendering that
publications would require.
While your first effort may not satisfy your "easy" criteria, it gets
better with experience.
Regards,
Mike
On Fri, 2002-11-22 at 05:16, Wright, Kevin wrote:
> 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.
>
>
>
>
Michael Nielsen
ph: 0411-097-023 email: miken at bigpond.net.au
Mike Nielsen
________________________________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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