For anyone who is interested, I eventually solved the problem I was having by:
1) clearing the font cache ("sudo atsutil databases -remove" in the Terminal
followed by restarting)
which led to R generating error messages indicating that it couldn't
find Arial
(apparently, Arial (not Helvetica) is the default font for
Quartz)
2) using Font Book to add the useful version of Arial back to the fonts library
I had confirmed that I was using a functional Arial,
however Font Book's 'Resolve Duplicates' command had removed
the newer version of Arial and kept an old one that R couldn't
understand
NB: for anyone trying to fix a similar problem, remember to close the Quartz window before
replotting or your changes in the 'Font Book' won't have taken effect ;-)
On 4/09/13 16:52, Simon Urbanek wrote:
On Apr 9, 2013, at 3:50 PM, Randall Tyers wrote:
Hi-
When I use 'plot' the labels are all missing
Please see R for Mac FAQ 10.14 "I see no text in a Quartz plot!":
"Typically this means that you have corrupted fonts in your system. Open the Font
Book application (in Applications) and check the fonts that you are using (for example
the default font in Quartz is “Helvetica”). Corrupted fonts will have no glyphs (text
will not appear as it should), remove such fonts."
Cheers,
S
. If I set family='mono' (or 'sans' OR 'serif' then they appear). I can deal
with this, even if it is a touch annoying.
However, when I use 'boxplot', I don't get labels with the default font or if I
set family='mono' (or 'sans' OR 'serif').
quartzFonts()
$serif
[1] "Times-Roman" "Times-Bold" "Times-Italic" "Times-BoldItalic"
$sans
[1] "Helvetica" "Helvetica-Bold" "Helvetica-Oblique" "Helvetica-BoldOblique"
$mono
[1] "Courier" "Courier-Bold" "Courier-Oblique" "Courier-BoldOblique"
The help indicates that Helvetica is the default font for Quartz - obviously
this is not correct - I suspect it is Arial (which has caused me problems
before).
I did look through the last two of years of the R-SIG-Mac archive but didn't
find anything that helped. Is there something else I can check?
In particular, I would be grateful if someone could provide me information on
the following:
1) What might be wrong with Boxplot?
2) How do I figure out what the default Quartz font is?
3) Any advice on fixing this font, if that is the problem? I've tried deleting
duplicates in 'Font Book' to no avail ...
Thanks so much!
-Randall
sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.0.0
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac