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

Phillip Jardine PEJ083 at bham.ac.uk
Wed Jan 19 11:13:02 CET 2011


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 Jardine
Geosystems Research Group
School of Geography, Earth, and Environmental Sciences
University of Birmingham
B15 2TT

pej083 at bham.ac.uk
Tel. 0121 414 6146
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.


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

        [[alternative HTML version deleted]]

R-SIG-Mac mailing list
R-SIG-Mac at r-project.org

More information about the R-SIG-Mac mailing list