[R] Graphical output format

Daniel Malter daniel at umd.edu
Thu May 14 08:07:24 CEST 2009


Hi, postscript should do, "*.eps" specifically.

x=rnorm(100,0,1)
e=rnorm(100,0,1)
y=x+e

postscript("myeps.eps")
plot(y~x)
dev.off() 

Cheers,
Daniel


-------------------------
cuncta stricte discussurus
-------------------------

-----Ursprüngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im
Auftrag von Stats Wolf
Gesendet: Thursday, May 14, 2009 12:47 AM
An: r-help at r-project.org
Betreff: [R] Graphical output format

Dear colleagues,

Saving a plot with pdf gives a very nice result:

pdf("myplot.pdf")
par(font=1,family='serif')
plot(pressure)
dev.off()

Doing the very same with other formats (png, jpeg, tiff) gives far worse
results. Is there anything to do to make a plot in some other format than
pdf look like the pdf? Hardly any journal accepts pdf files for figures, and
most do accept png and jpeg -- so no matter what I think about this, I must
follow this rule. What can I do, then?

I am using R 2.9.0 for Windows XP.

Many thanks in advance,
Wolf

______________________________________________
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.




More information about the R-help mailing list