Error with qplot on MAC OS X

1,484 views
Skip to first unread message

Joao_Salcedo

unread,
May 15, 2012, 4:02:17 AM5/15/12
to ggplot2
Hi All,

I am using RStudio 0.95.265 on MAC OS X 10.7.3 and I am trying the
following:

>library(ggplot2)
>qplot(displ, hwy, data = mpg)

And I have the following error

Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x
$y, :
Polygon edge not found
In addition: Warning messages:
1: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "Arial"
2: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "Arial"

Cheers,

Joao

Joran

unread,
May 15, 2012, 11:30:25 AM5/15/12
to ggp...@googlegroups.com
Can you say which version of R and ggplot2 you're using? For instance, the output from sessionInfo()?

jrm

unread,
Jun 13, 2012, 5:47:34 PM6/13/12
to ggp...@googlegroups.com
after some more digging, i discovered that the arial fonts on my system had been disabled (the files had been placed in /Library/Fonts Disabled/), even though Font Book still reported Arial present, however this was the version stored in the Microsoft fonts directory (/Library/Fonts/Microsoft/).  i moved the fonts back from the disabled folder, the resolved the duplicate fonts from within Font Book.
Reply all
Reply to author
Forward
0 new messages