Hello, I am new to R and I am trying to figure out how to print text output from an operation like table() to a pdf file. Is there a simple command to do this, or do you need to work with connections at a rudimentary level? Thanks you, Jesse [[alternative HTML version deleted]]
Look at the xtable package and latex in the Hmisc package. On 10/21/07, Jesse D Lecy <jdlecy at maxwell.syr.edu> wrote:> Hello, > > I am new to R and I am trying to figure out how to print text output from an operation like table() to a pdf file. Is there a simple command to do this, or do you need to work with connections at a rudimentary level? > > Thanks you, > Jesse > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >
Gabor Grothendieck <ggrothendieck <at> gmail.com> writes:> > Look at the xtable package and latex in the Hmisc package. > > On 10/21/07, Jesse D Lecy <jdlecy <at> maxwell.syr.edu> wrote:..> > I am new to R and I am trying to figure out how to print text output from anoperation like table() to a pdf file.> Is there a simple command to do this, or do you need to work with connectionsat a rudimentary level? ... or, as a lightweight solution, use function textplot in package gplots Dieter
Perhaps you should look at what Murrell offers: http://www.jstatsoft.org/v30/i04 Or at worked examples in the Wiki: http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:display-images On Jan 18, 2010, at 10:21 AM, Dimitri Shvorob wrote:> > Ah, mine was not a helpful example. Text atop a picture is a special > scenario, handled by title(); 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. > > -- > View this message in context: http://n4.nabble.com/exporting-text-output-to-pdf-tp837699p1016744.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.David Winsemius, MD Heritage Laboratories West Hartford, CT
Nothing relevant, as far as I can tell :( Putting text into a PDF document in R appears to be a cumbersome exercise. -- View this message in context: http://n4.nabble.com/exporting-text-output-to-pdf-tp837699p1016808.html Sent from the R help mailing list archive at Nabble.com.
On Jan 18, 2010, at 11:41 AM, Dimitri Shvorob wrote:> > Nothing relevant, as far as I can tell :( > Putting text into a PDF document in R appears to be a cumbersome > exercise.You might get more specific ideas if your were in turn .... more specific. Offer an example that sends output to a screen device and someone can show you how to direct it to a pdf file. The problem so far is a lack of concrete examples in your questions. -- David Winsemius, MD Heritage Laboratories West Hartford, CT
You may as well go all the way and use Sweave. See http://www.stat.umn.edu/~charlie/Sweave/ for examples. -Ista On Mon, Jan 18, 2010 at 4:41 PM, Dimitri Shvorob <dimitri.shvorob at gmail.com> wrote:> > Nothing relevant, as far as I can tell :( > Putting text into a PDF document in R appears to be a cumbersome exercise. > -- > View this message in context: http://n4.nabble.com/exporting-text-output-to-pdf-tp837699p1016808.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. >-- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org