[R] One pdf file with plots and text output
Rainer M. Krug
Rainer at krugs.de
Wed Oct 17 12:12:08 CEST 2007
Olivier Delaigue wrote:
> You should try with type of command:
>
> mtext(paste("Residuals:", summary(xlm)$residuals, "Coefficients:",
> summary(xlm)$coefficients, etc..., sep ="\n"))
I am sure this would work, but I would like to have something without to
much additional coding. Sweave seems to be the way to go - I'll play
with it.
Thanks a lot
Rainer
>
> Olivier Delaigue
>
> Rainer M Krug-2 wrote:
>>
>> It prints the summary, but in one line which is obviously to long to fit
>> on one page
>>
>>>> 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
>>
>>
>
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF MARCH
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa
Tel: +27 - (0)21 650 5776 (w)
Fax: +27 - (0)86 516 2782
Fax: +27 - (0)21 650 2440 (w)
Cell: +27 - (0)83 9479 042
Skype: RMkrug
email: Rainer.Krug at uct.ac.za
Rainer at krugs.de
More information about the R-help
mailing list