使用family
和font
論點:
library(wordcloud)
set.seed(1)
par(mfrow = c(1,2))
wordcloud(c(letters, LETTERS, 0:9), seq(1, 1000, len = 62), family = "serif", font = 3)
wordcloud(c(letters, LETTERS, 0:9), seq(1, 1000, len = 62), family = "mono", font = 2)
見?par
font
下和family
瞭解詳情。 extrafont
包提供了更多選項。你在SO上找到很多例子。
另請參閱此TT相關的SE問題字體:http://stackoverflow.com/questions/18108512/r-wordcloud-external-ttf-vfont-not-recognized – patrickmdnet