[R] R graphs differ from exported one

Mark Seeto markseeto at gmail.com
Mon Jun 13 08:09:09 CEST 2011


I didn't include code because I wasn't asking for help; I was merely
commenting that I had seen the same thing happen. But thank you for
mentioning dev.off, which I had not heard of before.


On Mon, Jun 13, 2011 at 3:55 PM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:
> Usually this happens when you forget to run dev.off(), as in that example.
>
> But we don't have the
>
>   commented, minimal, self-contained, reproducible code.
>
> the posting guide and the footer of every R message asks for.
>
> On Sun, 12 Jun 2011, Mark Seeto wrote:
>
>>
>> Raptorista wrote:
>>>
>>> Now, the graph that appears is very nice: indeed it has a title, two
>>> axes with their labels and all the rest;
>>> but when I give commands
>>>
>>> postscript(file="plot.eps", onefile=FALSE)
>>> qqnorm (col)
>>>
>>> to save the graph to a file "plot.eps" to include it in a TeX, the file
>>> created has nothing to do with the former one: it only has "the graph
>>> part", i.e. no title, no labels, no axes....
>>>
>>>
>>
>> I use R under Windows, and I've seen the same sort of thing. I usually
>> save
>> graphs as PDF or PNG files, which works fine, but on the rare occasions
>> I've
>> tried to save graphs as Postscript, some of the graphs end up saving with
>> bits missing.
>>
>>
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/R-graphs-differ-from-exported-one-tp3592553p3592915.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.
>>
>
> --
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>



More information about the R-help mailing list