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

Leonard Assis lmassis at yahoo.com.br
Thu Oct 30 12:10:14 CET 2008


in My Macbook pro, there s no problem
Leonard Assis
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  
Efron




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"  
>> 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
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list