[英]r increase the font size of values in dendogram plot
如何增加基于 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)
谢谢。
plot.varclus
内部调用plot.hclus
,您可以通过运行看到:
getS3method("plot",class = 'varclus')
它传递labels
参数(和...
参数)。 这包括字体缩放参数cex
所以尝试:
plot(v,
cex = 1.5)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.