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 ;
G'day Ivo, On Sat, 17 May 2008 21:33:35 -0400 "ivo welch" <ivowel at gmail.com> wrote:> dear R graphics experts---Not belonging to this group, but can confirm that I can see the same, in particular the circles are changing their size. However, I am a bit surprised that you run ps2pdf14 on a PDF file, according to the documentation the input should be a (E)PS file.> if anyone is running the combination of R 2.7.0 and ghostscript > (2.62),and I guess you mean ghostscript 8.62? Ghostscript 2.62 would be really ancient, probably from before the time that PDF was created... :)> could you please run the followingI will also leave it to somebody else on the list, specifically to people who find such coding particularly ugly if not offensive, to point out that semicolons are not needed at the end of lines of R scripts. :) HTH. Cheers, Berwin =========================== Full address ============================Berwin A Turlach Tel.: +65 6515 4416 (secr) Dept of Statistics and Applied Probability +65 6515 6650 (self) Faculty of Science FAX : +65 6872 3919 National University of Singapore 6 Science Drive 2, Blk S16, Level 7 e-mail: statba at nus.edu.sg Singapore 117546 http://www.stat.nus.edu.sg/~statba
On Sat, 17 May 2008, ivo welch wrote:> 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, /ivoHow are you viewing the files? Problems with evince using an old poppler version (such as you get with Fedora 8) were reported recently, and seem to have been fixed with the newer version of poppler used in debian unstable. -- George N. White III <aa056 at chebucto.ns.ca>
thanks. I am now using R-patched 2008-05-18 r45723 . This is probably intended, but if not, I wanted to note it briefly: on the pdf output device, symbol 1 is always black, no matter what color is selected. symbols 10 and 13 contain black. symbol 19 is the replacement for symbol 1 that takes on the color. forgive the semicolons: pdf.start("test"); # just encapsulates what you would expect. NM=25; plot( 0, type="n", ylim=c(0,6), xlim=c(0,NM), xlab="0-8", ylab="0-5" ); points( 1:NM, rep(1,NM), pch=1:NM, col="black"); points( 1:NM, rep(2,NM), pch=1:NM, col="green"); text( 1:NM, rep(3,NM), 1:NM, col=1:NM, cex=0.75); pdf.end(); /iaw On Sun, May 18, 2008 at 12:51 PM, hadley wickham <h.wickham at gmail.com> wrote:>> if developers from the R graphics group are reading this, given that >> this strange output is not just my imagination, maybe it would be >> worthwhile to see if the R output pdf could be made more robust to >> avoid this "feature." I stumbled onto it deep in a program, and spend >> an afternoon distilling it down to the R script that I posted. It was >> quite puzzling. > > Have you tried R-patched? I think Brian Ripley fixed this some days ago. > > Hadley > > -- > http://had.co.nz/ >