[R] R 2.70 + ps2pdf14

ivo welch ivowel at gmail.com
Sun May 18 03:33:35 CEST 2008


dear R graphics experts---if anyone is running the combination of R
2.7.0 and ghostscript (2.62), could you please run the following and
let me know if you get the same strange symbol size that I do, or if
there is something weird on my system?    regards, /ivo



pdf(file = "testhere.PDF", version="1.4", pointsize=14);

plot(0, xlim=c(0,26), ylim=c(-1,4.5), type="n" );

text(10, -0.5, "line 1 is plain, line 2 should be the same, except
blue\nline 3 should be 1.5 times the size of line 1, but otherwise the
same\nline 4 should be like line 4 except blue.\n\nthis gets weird
symbol sizes at certain spots after ps2pdf14 is applied\n --- R output
or ps2pdf error?", cex=0.5);

points(1:25,rep(1,25), pch=1:25);
points(1:25,rep(2,25), pch=1:25, col="blue");

points(1:25,rep(3,25), pch=1:25, cex=1.5);
points(1:25,rep(4,25), pch=1:25, col="blue", cex=1.5);

text(1, 0.2, "1 != 2", srt=90, cex=0.5);
text(16, 0.2, "1 != 2", srt=90, cex=0.5);
text(19, 0.2, "3 != 4, 1 != 2", srt=90, cex=0.5);
text(20, 0.2, "(1,2) > (3,4)", srt=90, cex=0.5);
#text(20, 0.4, "shrunk on cex=1.5", srt=90);

dev.off();

retcode= system( "ps2pdf14 testhere.PDF" );

#  now look at testhere.PDF.pdf , which is the ps2pdf14 output ;



More information about the R-help mailing list