ivo_welch-rstat8783@mailblocks.com
2004-Oct-15 14:13 UTC
[R] pdf device --- axes labels text disappeared?
Dear R Wizards: Running R 1.9.1. on amd64. Promise<- c(0,20,40); Expect<- c(0, 20, 0.2*20+.8*40 ); # this omits printing numbers on the axes labels. pdf(file = "bug.pdf" ); plot(Promise, Expect, type="b", ylim=c(0,60)); dev.off(); # this works postscript(file = "bug.eps" ); plot(Promise, Expect, type="b", ylim=c(0,60)); dev.off(); apologies if this has already been noted elsewhere---I looked but did not find it. (probably googled for the wrong terms, if so.) is this my bug, or R's bug or my R installation bug? help appreciated. /iaw
> Dear R Wizards: Running R 1.9.1. on amd64. > > > Promise<- c(0,20,40); Expect<- c(0, 20, 0.2*20+.8*40 ); > > # this omits printing numbers on the axes labels. > pdf(file = "bug.pdf" ); > plot(Promise, Expect, type="b", ylim=c(0,60)); > dev.off(); > > # this works > postscript(file = "bug.eps" ); > plot(Promise, Expect, type="b", ylim=c(0,60)); > dev.off(); >Dear Ivo, although I do not want to consider myself as an R wizard, but rather a helpful soul and because you have provided R-code suited for direct execution as it should be :-), here is my answer: in both devices the numbers are printed below the axes. This is on: platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 0.0 year 2004 month 10 day 04 language R HTH, Bernhard ps: Could the problem be related to your pdf encodings?> > apologies if this has already been noted elsewhere---I looked but did > not find it. (probably googled for the wrong terms, if so.) is this > my bug, or R's bug or my R installation bug? help appreciated. > > /iaw > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >-------------------------------------------------------------------------------- The information contained herein is confidential and is inte...{{dropped}}
On Fri, 2004-10-15 at 09:13, ivo_welch-rstat8783 at mailblocks.com wrote:> Dear R Wizards: Running R 1.9.1. on amd64. > > > Promise<- c(0,20,40); Expect<- c(0, 20, 0.2*20+.8*40 ); > > # this omits printing numbers on the axes labels. > pdf(file = "bug.pdf" ); > plot(Promise, Expect, type="b", ylim=c(0,60)); > dev.off(); > > # this works > postscript(file = "bug.eps" ); > plot(Promise, Expect, type="b", ylim=c(0,60)); > dev.off(); > > > apologies if this has already been noted elsewhere---I looked but did > not find it. (probably googled for the wrong terms, if so.) is this > my bug, or R's bug or my R installation bug? help appreciated. > > /iawHey Ivo! No problems here using R 2.0.0 on 32 bit Intel FC2. Both plots are fine. I don't have a 1.9.1 install at the moment, but I would guess that we would have heard about the problem prior to this. That suggests a possible issue with your install or a change of some sort with 64 bit R. Though again, I suspect other 64 bit users would have commented on this already... HTH, Marc Schwartz
No problems under R 2.0.0 or 1.9.1 on that platform. Are you *sure* this is a bug in the PDF and not in your pdf reader? Please read the PDF source file to find out. Mine has lines like /F2 1 Tf 12.00 0.00 -0.00 12.00 68.40 47.52 Tm (0) Tj /F2 1 Tf 12.00 0.00 -0.00 12.00 144.39 47.52 Tm (10) Tj /F2 1 Tf 12.00 0.00 -0.00 12.00 223.73 47.52 Tm (20) Tj /F2 1 Tf 12.00 0.00 -0.00 12.00 303.06 47.52 Tm (30) Tj /F2 1 Tf 12.00 0.00 -0.00 12.00 382.39 47.52 Tm (40) Tj On Fri, 15 Oct 2004 ivo_welch-rstat8783 at mailblocks.com wrote:> > Dear R Wizards: Running R 1.9.1. on amd64. > > > Promise<- c(0,20,40); Expect<- c(0, 20, 0.2*20+.8*40 ); > > # this omits printing numbers on the axes labels. > pdf(file = "bug.pdf" ); > plot(Promise, Expect, type="b", ylim=c(0,60)); > dev.off(); > > # this works > postscript(file = "bug.eps" ); > plot(Promise, Expect, type="b", ylim=c(0,60)); > dev.off(); > > > apologies if this has already been noted elsewhere---I looked but did > not find it. (probably googled for the wrong terms, if so.) is this > my bug, or R's bug or my R installation bug? help appreciated. > > /iaw > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Christopher Swingley
2004-Oct-15 15:18 UTC
[R] pdf device --- axes labels text disappeared?
/iaw, * <ivo_welch-rstat8783 at mailblocks.com> [2004-Oct-15 06:13 AKDT]:> Dear R Wizards: Running R 1.9.1. on amd64. > > Promise<- c(0,20,40); Expect<- c(0, 20, 0.2*20+.8*40 ); > > # this omits printing numbers on the axes labels. > pdf(file = "bug.pdf" ); > plot(Promise, Expect, type="b", ylim=c(0,60)); > dev.off();Version 1.9.1 (2004-06-21), AMD64, Debian amd64 unstable port. The plot I produced using these commands had all the numbers and lables. I used 'xpdf' version 3.00 to display the plot. Maybe it's your PDF viewer, rather than R? Chris -- Christopher S. Swingley email: cswingle at iarc.uaf.edu (work) Intl. Arctic Research Center cswingle at gmail.com (personal) University of Alaska Fairbanks www.frontier.iarc.uaf.edu/~cswingle/