[R-SIG-Mac] infinity may be represented as degree symbol, on x11 device.

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Oct 30 11:35:56 CET 2008


Yes, it is specific to you (or some Macs).  I'm not sitting in front of my 
iMac, but when it displays on my Linux box, the result is fine.

There are several variants of x11(): I am assuming this is the CRAN build 
and type="cairo"?  I tested the latter (and my self-build), and it should 
be rendering on the Mac so the actual X server would be irrelevant.  My 
test was for 10.5.5, though.

On Thu, 30 Oct 2008, John Maindonald wrote:

> Following execution of the following code, the second "infinity" appears
> [from the final command: axis(....)] as the degree symbol.  The first 
> infinity
> is fine.  When plotting to a quartz window, both infinity symbols are fine.
> I've no idea whether this is specific to X11 on the Mac, but maybe it is
> well to note it here first.
>
> x11()
> ## Sample from bivariate normal (x, y) with correlation rho
> rho <- 0.75; x <- rnorm(40); y <- rnorm(40) + rho/sqrt(1-rho^2)*x
> x0 <- cut(x, breaks=c(-Inf,-1,1,Inf))
> plot(unclass(x0), y, xaxt="n")
> axis(1, at=1:3, labels=expression("(" * -infinity * ", " * -1 * "]",
>                      "(" * -1 * ", 1]", "(1, " * infinity * "]"))
>
> R version 2.8.0 (2008-10-20)
> i386-apple-darwin8.11.1
>
> locale:
> en_AU.UTF-8/en_AU.UTF-8/C/C/en_AU.UTF-8/en_AU.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods
> [7] base
>
> loaded via a namespace (and not attached):
> [1] Matrix_0.999375-16 grid_2.8.0         lattice_0.17-15
> [4] lme4_0.999375-27   nlme_3.1-89
>
> John Maindonald             email: john.maindonald at anu.edu.au
> phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
> Centre for Mathematics & Its Applications, Room 1194,
> John Dedman Mathematical Sciences Building (Building 27)
> Australian National University, Canberra ACT 0200.
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

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



More information about the R-SIG-Mac mailing list