barplot轴标签大小不受cex.axis控制

时间:2014-11-23 18:07:45

标签: r

这似乎是出乎意料的行为。

barplot(table(sample(1:5,100,replace=TRUE)),cex.axis=3)

enter image description here

x轴大小不受cex.axis控制。任何人都有解释,并知道如何调整xaxis标签大小?感谢

1 个答案:

答案 0 :(得分:0)

?barplot所述,x轴(或horizontal=TRUE的y轴)的字符扩展参数为cex.names

barplot(table(sample(1:5, 100, replace=TRUE)), cex.axis=3, cex.names=3)

enter image description here