[英]r increase the font size of values in dendogram plot
How can I can increase the font size of labels, x2, x1, x3, x4 in the plot produced based on the function varclus
如何增加基于 function
varclus
生成的 plot 中标签 x2、x1、x3、x4 的字体大小
set.seed(1)
x1 <- rnorm(200)
x2 <- rnorm(200)
x3 <- x1 + x2 + rnorm(200)
x4 <- x2 + rnorm(200)
x <- cbind(x1,x2,x3,x4)
v <- varclus(x, similarity="spear") # spearman is the default anyway
v # invokes print.varclus
print(round(v$sim,2))
plot(v)
Thanks.谢谢。
plot.varclus
internally calls plot.hclus
as you can see by running: plot.varclus
内部调用plot.hclus
,您可以通过运行看到:
getS3method("plot",class = 'varclus')
and it passes along the labels
argument (and the ...
argument(s)).它传递
labels
参数(和...
参数)。 this includes a font scaling argument cex
这包括字体缩放参数
cex
so try:所以尝试:
plot(v,
cex = 1.5)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.