[R-SIG-Mac] infinity may be represented as degree symbol, on x11 device.
lmassis at yahoo.com.br
Thu Oct 30 12:10:14 CET 2008
in My Macbook pro, there s no problem
lmassis at yahoo.com.br
"An approximate answer to the right problem is worth a good deal more
than an exact answer to an approximate problem." - J. W. Tukey
"I like working on applied and theoretical problems at the same time
and one thing nice about statistics is that you can be useful in a
wide variety of areas. So my current applications include
biostatistics and also astrophysical applications. The surprising
thing is that the methods used are similar in both areas." - Bradley
On 30/10/2008, at 08:35, Prof Brian Ripley wrote:
> 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"
>> [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.
>> ## 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)
>> attached base packages:
>>  stats graphics grDevices utils datasets methods
>>  base
>> loaded via a namespace (and not attached):
>>  Matrix_0.999375-16 grid_2.8.0 lattice_0.17-15
>>  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
> 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
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
More information about the R-SIG-Mac