how to export same font for both base and ggplot2 plots, in R?
I am trying to understand how to make sure the font i am exporting from both base and ggplot2 plots is the same. The best would be to be able to have all plots from ggplot2 but for some reason, one plot i need to do with base R. I wrote an example code that exports svg for both ggplot and base r. I found a previous post suggesting the font that is normally used by base R is Helvetica. For ggplot it seems more tricky.
how to export save font for both base and ggplot2 plots, in R?
I am trying to understand how to make sure the font i am exporting from both base and ggplot2 plots is the same. The best would be to be able to have all plots from ggplot2 but for some reason, one plot i need to do with base R. I wrote an example code that exports svg for both ggplot and base r. I found a previous post suggesting the font that is normally used by base R is Helvetica. For ggplot it seems more tricky.