theme_fivethirtyeight() error on mac
ald0405 opened this issue · 1 comments
ald0405 commented
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
The issue pertained to installed fonts.
Fixed using the code below :
library(extrafont)
font_import()
loadfonts()