Theme(text = element_text(family = "Times New Roman")) To change all text in the figure to Times New Roman, we just need to update the text option of the theme as follows: Labs(title = "Total US population over time", Let’s make a basic plot and see its default look (I am generating this on a Mac with the Quartz device):īase_fig <- ggplot(data = economics, aes(date, pop)) + This post will focus on what you can do without importing additional packages. If you want to go all out with using custom fonts, I suggest looking into the extrafont and showtext packages. It turns out that this is easy, but it brought up a whole host of questions that I don’t have the full answer to. I was recently asked to convert all the fonts in my ggplot2-generated figures for a paper to Times New Roman.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |