增加 R plot 中的字体大小

Increase font size in R plot

我正在从 TermDocumentMatrix 中绘制所有单词之间的相关性。但是字太小了,看不懂

freq.terms <- findFreqTerms(tdm, lowfreq=8)
plot(tdm, term = freq.terms, corThreshold = 0.2, weighting = T)

我已经尝试 cex=1.5 在其他帖子中提到的情节调用中,但这没有任何作用。

如何增加字体大小?

使用 tm 时有点不同,因此没有 cex:

plot(dtm,terms = findFreqTerms(dtm, lowfreq=100),corThreshold = 0.3,weighting = TRUE,attrs = list(graph = list(rankdir ="BT"),node = list(shape = "rectangle",fixedsize=FALSE,fontsize=120)))

其中的关键部分是 fontsize=120(或 = 其他) 在

node = list(shape = "rectangle",fixedsize=FALSE,fontsize=120)