Error when exporting ggplot graphs to pdf: invalid font type
问题 I'm having trouble getting my plots to save using ggsave(). I keep getting this error: Error in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, : invalid font type I don't understand why I would be getting this error.. I'm not using any special type of font. I looked at these similar questions: Export to pdf not displaying properly in ggplot2 Saving ggplot graph to PDF with fonts embedded in r But they haven't worked for me. The code works fine and the plots print perfectly in