Skip to content

R graphs differ from exported one

5 messages · Massimiliano Tripoli, Joshua Wiley, Mark Seeto +1 more

#
Hmm, did you shut the device down afterward (i.e., call dev.off() )?
I do not have any logic why that would induce the behavior you say you
are getting, but this works just fine for me:

postscript("tmp.eps", onefile = TRUE)
qqnorm(rnorm(20))
dev.off()

and creates the attached file (possibly not attached for the list, but
you should get it).

Josh
On Sun, Jun 12, 2011 at 10:00 AM, Massimiliano <massi.lyons at gmail.com> wrote:

  
    
#
Raptorista wrote:
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.
#
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:

            

  
    
#
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: