Changing fonts in ggplot2

前端 未结 5 1396
盖世英雄少女心
盖世英雄少女心 2020-11-22 12:59

Once upon a time, I changed my ggplot2 font using using windowsFonts(Times=windowsFont(\"TT Times New Roman\")) to change it. Now I can\'t get it

5条回答
  •  暖寄归人
    2020-11-22 13:39

    To change the font globally for ggplot2 plots.

    theme_set(theme_gray(base_size = 20, base_family = 'Font Name' ))
    

提交回复
热议问题