[R-SIG-Mac] plot() does not give labels under quartz

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 19 12:22:41 CET 2011


Missing labels has been reported several times, and AFAIK has always 
indicated a corrupt font cache (or other problems in the font book). 
There are various ways to repair that, so I'll leave you to Google for 
one.

On Wed, 19 Jan 2011, Phillip Jardine wrote:

> Tena,
>
> I had the same problem myself a few months ago, when I upgraded to 
> OS X 10.6.5 (from OS X 10.4) I don't know why this happened, but by 
> trial and error I found that putting family = "sans" into the plot 
> command brought back the labels.
>
> Bizarrely though things recently started working normally again, 
> with no updates/upgrades on my part. Strange, eh?
>
> Anyway, try the family = "sans" thing, it might help.
>
> Best wishes,
>
> Phil
> --
> Phil Jardine
> Geosystems Research Group
> School of Geography, Earth, and Environmental Sciences
> University of Birmingham
> Edgbaston
> Birmingham
> B15 2TT
>
> pej083 at bham.ac.uk
> Tel. 0121 414 6146
> http://www.gees.bham.ac.uk/staff/pgpej083.shtml
> ________________________________________
> From: r-sig-mac-bounces at r-project.org [r-sig-mac-bounces at r-project.org] On Behalf Of Tena Sakai [tsakai at gallo.ucsf.edu]
> Sent: 19 January 2011 04:29
> To: r-sig-mac at r-project.org
> Subject: [R-SIG-Mac] plot() does not give labels under quarts.
>
> Greetings,
>
> I have noticed a bit odd behavior of plot() on OS X 10.6.5.
> The R I downloaded from cran is R-2.12.1.pkg.  Below is
> what I did:
>
>        R version 2.12.1 (2010-12-16)
>               .
>               .
>        [R.app GUI 1.35 (5665) x86_64-apple-darwin9.8.0]
>
>        > foo <- c( 4, 6, 9 ,12 )
>        > moo <- c( 34, 37, 41, 49 )
>        > plot( foo ~ moo )
>
> This gives me a plot with no labels.  No "moo", "foo", or numbers under
> tics.  But,
>
>        > X11()
>        > plot( foo ~ moo )
>
> This gives me xlabel ("moo"), ylabel ("foo"), and numbers under tics.
> In the first case, by default, I am using quartz, while the second,
> obviously, I am using X11.
>
> Does anybody know why this happens under quartz and not under X11?
>
> Thank you.
>
> Tena Sakai
> tsakai at gallo.ucsf.edu

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