gloveee 发表于 2018-6-30 09:56 
谢谢~那用ggplot怎么选择不同的字体样式呢?还是像showtext一样选择适合的ttf文件吗? (比如cour.ttf)
在theme里面,用family=“”, 比如family="Times" 就是times new roman。有时候ggplot和windows有些communication issue,所以如果字体加载报错的话,用library(extrafont) 和font_import(),这样就可以把windows里面的字体搬到ggplot里面,然后你就可以随便选择字体了。