jrnold / ggthemes

Additional themes, scales, and geoms for ggplot2
http://jrnold.github.io/ggthemes/
1.31k stars 229 forks source link

theme_fivethirtyeight() error on mac #145

Closed ald0405 closed 1 year ago

ald0405 commented 1 year ago

Hey,

A big fan of this package; I've been using it for a number of years now 🔥

Since I've switched to mac 💻 I consistently get an error with the fivethirtyeight theme.

I get the following error message

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : polygon edge not found

Cheers

ald0405 commented 1 year ago

The issue pertained to installed fonts.

Fixed using the code below :


library(extrafont)
font_import()
loadfonts()