Re: [R] exporting text output to pdf

2010-01-19 Thread Dimitri Shvorob
The modified snippet (with the long paragraph truncated) does not produce anything like the requested document. -- View this message in context: http://n4.nabble.com/exporting-text-output-to-pdf-tp837699p1017332.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] exporting text output to pdf

2010-01-19 Thread Dimitri Shvorob
Thanks a lot! -- View this message in context: http://n4.nabble.com/exporting-text-output-to-pdf-tp837699p1017331.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] exporting text output to pdf

2010-01-19 Thread baptiste auguie
Hi, You could play with the splitTextGrob() function from the RGraphics package, string - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque leo ipsum, ultricies scelerisque volutpat non, volutpat et nulla. Curabitur consequat ullamcorper tellus id imperdiet. Duis semper malesuada

Re: [R] exporting text output to pdf

2010-01-18 Thread Demyan
... or, as a lightweight solution, use function textplot in package gplots An R newbie experimenting with pdf(), and then with textplot(), I find that each plot or textplot'ted (with default settings) text is displayed on a separate page. How can I get a normal-font-sized 'Hello world'

Re: [R] exporting text output to pdf

2010-01-18 Thread David Winsemius
On Jan 18, 2010, at 8:40 AM, Demyan wrote: ... or, as a lightweight solution, use function textplot in package gplots An R newbie experimenting with pdf(), and then with textplot(), I find that each plot or textplot'ted (with default settings) text is displayed on a separate page.

Re: [R] exporting text output to pdf

2010-01-18 Thread Dimitri Shvorob
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:

Re: [R] exporting text output to pdf

2010-01-18 Thread David Winsemius
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

Re: [R] exporting text output to pdf

2010-01-18 Thread Dimitri Shvorob
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.

Re: [R] exporting text output to pdf

2010-01-18 Thread David Winsemius
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

Re: [R] exporting text output to pdf

2010-01-18 Thread Ista Zahn
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.shvo...@gmail.com wrote: Nothing relevant, as far as I can tell :( Putting text into a PDF document in R appears to be a

Re: [R] exporting text output to pdf

2010-01-18 Thread Dimitri Shvorob
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

Re: [R] exporting text output to pdf

2010-01-18 Thread Thomas S. Dye
If you use emacs, then another alternative is Org-babel, which allows you to mix and match languages. Using the literate programming paradigm, Org-babel will tangle your hwriter code snippets and expand references to any R-code that you want to embed within them. I use Org-babel to combine

Re: [R] exporting text output to pdf

2010-01-18 Thread David Winsemius
On Jan 18, 2010, at 1:33 PM, Dimitri Shvorob wrote: 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? I suggested that you look at the wiki and

Re: [R] exporting text output to pdf

2010-01-18 Thread Dimitri Shvorob
Error in library(ReadImages) : .First.lib failed for 'ReadImages' David, I was aware of title, main and mtext when I asked the question, and although advice concerning them was certainly sound, it was not news. Yes, one can put text into images - I wish I had not brought up images at all and

Re: [R] exporting text output to pdf

2010-01-18 Thread Dimitri Shvorob
I wish I had not brought up images at all and focused on text In fact, let's do that and forget about images - I just want to put text into a PDF. Let's take, say, five long strings to represent paragraphs, then put them on a single page, one after another, with minimal code. I don't want to

Re: [R] exporting text output to pdf

2010-01-18 Thread Dimitri Shvorob
... You can modify this (dysfunctional) snippet. pdf() plot.new() mtext(Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque leo ipsum, ultricies scelerisque volutpat non, volutpat et nulla. Curabitur consequat ullamcorper tellus id imperdiet. Duis semper malesuada nulla, blandit

Re: [R] exporting text output to pdf

2010-01-18 Thread Greg Snow
- 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

Re: [R] exporting text output to pdf

2010-01-18 Thread David Winsemius
On Jan 18, 2010, at 5:07 PM, Dimitri Shvorob wrote: ... You can modify this (dysfunctional) snippet. pdf() plot.new() mtext(Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque leo ipsum, ultricies scelerisque volutpat non, volutpat et nulla. Curabitur consequat ullamcorper

[R] exporting text output to pdf

2007-10-21 Thread Jesse D Lecy
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]]

Re: [R] exporting text output to pdf

2007-10-21 Thread Gabor Grothendieck
Look at the xtable package and latex in the Hmisc package. On 10/21/07, Jesse D Lecy [EMAIL PROTECTED] 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

Re: [R] exporting text output to pdf

2007-10-21 Thread Dieter Menne
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 an operation like table() to a pdf file.