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.ly...@gmail.com> wrote: > 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 course. > > The problem I'd like to ask you about follows. > Suppose I have imported a datafile with the classic command > > dat <- read.table('file', header=T) > > and wanted to see if my data are Normal-like or not. > I can accomplish this with the command > > qqnorm (col) > > where 'col' is the column in the datafile 'file'. > 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 searched in the documentation but found nothing; the same on the > forum. > What should I do? > I'm running R 2.12.1 on Ubuntu Linux 10.04 LL 64-bit > > Thanks for help to everybody :) > Massimiliano > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
tmp.eps
Description: PostScript document
______________________________________________ R-help@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.