[R] One pdf file with plots and text output

Rainer M Krug Rainer+R-help at krugs.de
Wed Oct 17 11:37:18 CEST 2007


Rainer M. Krug wrote:
> Olivier Delaigue * wrote:
>> Maybe with:
>>
>>> print(plot.new())
>>> mtext(summary(xlm))
> 
> Thanks Olivier - that sounds like an easy approach - I'll try itr out 
> and report back.

It prints the summary, but in one line which is obviously to long to fit 
on one page


> 
> 
> Rainer
> 
> 
>>
>> Regards,
>>
>> Olivier Delaigue
>>
>>
>> Rainer M Krug-2 wrote:
>>> Hi
>>>
>>> I create one pdf file with plots via pdf() and one text file with 
>>> text via sink() that works very nice. But I would prefer to have one 
>>> pdf file with plots and the text which I store in the te=xt file via 
>>> sink(). I.e.
>>>
>>> x.lm<-lm(...)
>>> pdf()
>>> plot(x.lm)
>>> NOW THE TEXT OF summary(xlm) IN THE PDF FILE
>>> dev.off()
>>>
>>> Is this possible or is there a different format which I could use?
>>>
>>> Rainer
>>>
>>> ______________________________________________
>>> 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