jrnold/ggthemes

theme_fivethirtyeight() error on mac

ald0405 opened this issue · 1 comments

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

The issue pertained to installed fonts.

Fixed using the code below :

library(extrafont)
font_import()
loadfonts()