[R] R has stopped plotting

David Winsemius dwinsemius at comcast.net
Sun Dec 6 18:12:09 CET 2009


On Dec 6, 2009, at 11:47 AM, Walther, Alexander wrote:

> @ Ista: no, R still struggles with the output. Thanks anyway. :)  Is
> there a way to merge multiple of these PNGs into a single PDF document
> afterwards? I would like to refrain from bridging this gap with
> additional software like f.i. Adobe Acrobat.
>

 > pdf(file="test.pdf")
 > plot(1,1)
 > plot(0,0)
 > plot(10,10)
 > dev.off()

Voila, 3 page pdf w/ diff plot on each page.

--  
David.
>
> Cheers
>
> Alex
>
>
>
>
>
> Ista Zahn schrieb:
>> You need dev.off() I think.
>>
>> -Ista
>>
>> On Sun, Dec 6, 2009 at 10:53 AM, Walther, Alexander
>> <awalthermail at googlemail.com> wrot
>>
>>> Dear list,
>>>
>>> as described beforehand, i wanted to merge three single plots into  
>>> one
>>> JPEG-file. Since I use PNG now, code goes as follows:
>>>
>>>
>>> png(...)
>>>
>>> layout(...)
>>>
>>> par(...)
>>> plot(...)
>>>
>>> par(...)
>>> plot(...)
>>>
>>> par(...)
>>> plot(...)
>>>
>>>
>>> which works out pretty well, but now a new problem occurred: R has
>>> stopped to create new plots at all. Opening the PNG, the prior  
>>> defined
>>> arrangement has  been implemented but obviously no plots were  
>>> compiled.
>>> Plus, by commenting out the PNG-function (and even layout()), R
>>> completely refuses to open up a plotting window (code runs all the  
>>> way
>>> without error messages, though).
>>> Even entering the plotting command directly in the R shell leads  
>>> to the
>>> same result.
>>>
>>> Any ideas?
>>>
>>>
>>> Best
>>>
>>> Alex
>>>
>>> ______________________________________________
>>> 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.
>>>
>>>
>>
>>
>>
>>
>
> ______________________________________________
> 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




More information about the R-help mailing list