Sat, 17 Dec 2022 19:40:46 +0000
ggplot, rstats, unicode, pdf

#ggplot #rstats #unicode #pdf I had written on using unicode in ggplot PDFs: https://michaelbach.de/2020/03/22/ggplotAndUnicode.html. However it didn't work today with more exotic unicode ♀♂. Library "emojifont" doesn't plot shapes I like. Digging deeper, looks like `Cairo` has changed (or my error). Whatever, it is easier now: theme(…font…) not necessary, but the ggsave command needs font to properly embed like so:
`ggsave(filename='xyz.pdf', device=cairo_pdf, family="Arial Unicode MS", …)`. Needs `library(Cairo)`, of course.