|
|
|
|
|
by ArnoVanLumig
4145 days ago
|
|
You can do it with ggplot2 using the 'extrafont' library and installing the CM fonts (after loading extrafont, do 'font_install("fontcm")'). Then it's just adding + theme(text=element_text(family="CM Roman"))
to your plot.For me that doesn't work when displaying the graphs in a window, but it does work when exporting to PDF with ggsave. Afterwards you have to embed the CM font into the PDF with 'embed_fonts'. |
|