Hi Jim,

The family="sans" trick works for me as well.  It looks like this could be
some kind of issue specific to 10.6 then, as I'm running 10.6.4.  I agree
that it would be nice to find the root cause of this, but your workaround is
good.

Thanks again to everyone who has offered suggestions,
Adrian

2010/9/5 Phillip Jardine <pej...@bham.ac.uk>

> Hi Adrian,
>
> Just to let you know I experienced exactly the same problem a couple of
> weeks ago, after upgrading my operating system from 10.4 to 10.6. I also
> couldn't find any duplicate fonts using FontBook. I've found that specifying
> family = "sans" in the plotting command, i.e.:
>
> plot(x, y, family = "sans")
>
> Gets the text on the graphs in Helvetica (the default setting). It's not a
> proper fix, but it does work!
>
> Cheers,
>
> Phil
> --
> Phil Jardine
> Geosystems Research Group
> School of Geography, Earth, and Environmental Sciences
> University of Birmingham
> Edgbaston
> Birmingham
> B15 2TT
>
> pej...@bham.ac.uk
> Tel. 0121 414 6146
> http://www.gees.bham.ac.uk/staff/pgpej083.shtml
> ________________________________________
> From: r-sig-mac-boun...@stat.math.ethz.ch [
> r-sig-mac-boun...@stat.math.ethz.ch] On Behalf Of Adrian [
> adrian.d...@duke.edu]
> Sent: 05 September 2010 10:25
> To: David Winsemius
> Cc: r-sig-mac@stat.math.ethz.ch
> Subject: Re: [R-SIG-Mac] Text will not appear on any graph
>
> Interesting... apparently I'm printing to a "null device":
>
> > dev.cur()
> null device
>          1
>
> Adrian
>
> 2010/9/5 David Winsemius <dwinsem...@comcast.net>
>
> >
> > On Sep 4, 2010, at 10:42 PM, Adrian wrote:
> >
> >  Thanks again for the suggestions thus far.  In response:
> >>
> >> 1) I did enter the quartzFonts() command, and I received what I assume
> to
> >> be
> >> the expected output:
> >>
> >>> quartzFonts()
> >>>
> >> $serif
> >> [1] "Times-Roman"      "Times-Bold"       "Times-Italic"
> >> [4] "Times-BoldItalic"
> >>
> >> $sans
> >> [1] "Helvetica"             "Helvetica-Bold"
> >> [3] "Helvetica-Oblique"     "Helvetica-BoldOblique"
> >>
> >> $mono
> >> [1] "Courier"             "Courier-Bold"        "Courier-Oblique"
> >> [4] "Courier-BoldOblique"
> >>
> >> 2) If I output my plots directly to a pdf file, the text is included
> just
> >> fine.  If I run identical commands to be output to the default device,
> no
> >> text is displayed.  This seems to indicate that it could be some kind of
> >> problem with the Quartz device?
> >>
> >
> > Assuming that the quartz device is the current device that is. What does
> > dev.cur() return?
> >
> > --
> > David
> >
> >
> >> 3) The output that I received from the par() command after plotting a
> >> graph
> >> (with no tex) is identical to that received from another user who is
> able
> >> to
> >> see text graphs.
> >>
> >> Ultimately, it would be good to determine and fix the root cause of this
> >> problem, as it would be convenient to be able to view graphs immediately
> >> upon generating them.  However, outputting to a PDF file gives me a good
> >> workaround for the moment.
> >>
> >> Thanks again,
> >> Adrian
> >>
> >> 2010/9/4 Susan Gruber <sgru...@berkeley.edu>
> >>
> >>  I don't have a solution, but you may get another clue to where the
> >>> problem
> >>> lies if you send the plot directly to a file, and see whether the text
> >>> shows up there.
> >>>
> >>> pdf()
> >>> # your plot commands here
> >>> dev.off()
> >>>
> >>>
> >>> Then look at Rplots.pdf in your working directory.
> >>>
> >>> --Susan
> >>>
> >>>  Hello,
> >>>>
> >>>> Thank you for the suggestions thus far.  In response:
> >>>>
> >>>> No plotting command includes text, even if it is explicitly specified
> >>>>
> >>> with
> >>>
> >>>> the "xlab", "ylab", or "main" commands.  For example:
> >>>> plot(1:10, xlab="foo", main="bar")
> >>>> produces a graph with no text on either axis, no numerical labels, and
> >>>> no
> >>>> title.
> >>>>
> >>>> As for David's suggestion, this looks similar to a post that I found
> >>>> online: http://permalink.gmane.org/gmane.comp.lang.r.mac/5489.  I
> >>>> looked
> >>>> through my font book and did not find any duplicate fonts.  Just to be
> >>>> sure,
> >>>> I selected all of the fonts and did a "resolve duplicates" operation
> >>>>
> >>> under
> >>>
> >>>> the Font Book edit menu.  Still no text on any graphs though.
> >>>>
> >>>> Thanks again,
> >>>> Adrian
> >>>>
> >>>> 2010/9/4 David Winsemius <dwinsem...@comcast.net>
> >>>>
> >>>>
> >>>>> On Sep 4, 2010, at 12:56 PM, Adrian wrote:
> >>>>>
> >>>>> Hello,
> >>>>>
> >>>>>>
> >>>>>> I am having trouble displaying graphs in R.  Whenever I create
> graphs,
> >>>>>> no
> >>>>>> axes labels, numerical scales, or titles are displayed.  If I use
> the
> >>>>>> "text()" function to explicitly add text to the graph, no text is
> >>>>>> displayed.
> >>>>>> I can see all of the graphs using the "demo(graphics)" command, but
> >>>>>> none
> >>>>>> of
> >>>>>> the graphs include any text.  I am running R version: R 2.11.1 GUI
> >>>>>> 1.34
> >>>>>> Leopard build 32-bit (5589) on Mac OS 10.6.4.  I would be happy to
> >>>>>> provide
> >>>>>> any further information that could be useful in diagnosing this
> >>>>>> problem.
> >>>>>> Any advice is appreciated.
> >>>>>>
> >>>>>>
> >>>>> Your font library has probably become corrupted. Use Font Book.app to
> >>>>> look
> >>>>> at Times, Courier, Helvetica and Symbol and remove any duplicate
> >>>>> entries
> >>>>> that are blank.
> >>>>>
> >>>>> --
> >>>>>
> >>>>> David Winsemius, MD
> >>>>> West Hartford, CT
> >>>>>
> >>>>>
> >>>>>
> >>>>     [[alternative HTML version deleted]]
> >>>>
> >>>> _______________________________________________
> >>>> R-SIG-Mac mailing list
> >>>> R-SIG-Mac@stat.math.ethz.ch
> >>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>        [[alternative HTML version deleted]]
> >>
> >> _______________________________________________
> >> R-SIG-Mac mailing list
> >> R-SIG-Mac@stat.math.ethz.ch
> >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> >>
> >
> > David Winsemius, MD
> > West Hartford, CT
> >
> >
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to