[R-SIG-Mac] infinity may be represented as degree symbol, on x11 device.
John Maindonald
john.maindonald at anu.edu.au
Thu Oct 30 11:16:13 CET 2008
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.
More information about the R-SIG-Mac
mailing list