Re: [R] R graphs differ from exported one

2011-06-13 Thread Mark Seeto
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 rip...@stats.ox.ac.uk wrote: Usually this happens when

[R] R graphs differ from exported one

2011-06-12 Thread Massimiliano
Hello everybody! This is my first mail so I'll write a couple of lines of self-introduction. My name is Massimiliano, I'm from Italy and I'm studying Mathematical Engineering. I started using R in my Statistics course and have to use it to make a project which I'll discuss at the end of the

Re: [R] R graphs differ from exported one

2011-06-12 Thread Joshua Wiley
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

Re: [R] R graphs differ from exported one

2011-06-12 Thread Mark Seeto
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

Re: [R] R graphs differ from exported one

2011-06-12 Thread Prof Brian Ripley
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