r - 如何在 R 中更改 corrplot 图例中标签的字体大小?

标签 r r-corrplot

我想在调用 corrplot 旁边出现的比例尺中将 1 标签的大小更改为 -1 ,但不确定要传递什么参数来完成此操作。

一个示例调用看起来像

corrplot(data, method="pie", cex=2)

我的一些合理猜测,但不起作用,包括:
cex=2 (errors/warnings, no effect)
cex.xlab=2 (errors/warnings, no effect)
cex.legend=2 (errors/warnings, no effect)
cex.axis=2 (sets axis labels of main plot 2x size, no effect on legend text)

最佳答案

我认为您正在寻找 tl.cex:

df <- data.frame(x = rnorm(10), y = rnorm(10), z = rnorm(10))

library(corrplot)
z <- corrplot(cor(df), method = "pie", tl.cex=4)

看起来像 corrplot() 中的许多选项用 tl* 设置,例如,tl.col 表示颜色等。

关于r - 如何在 R 中更改 corrplot 图例中标签的字体大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31544651/

相关文章:

r - 如何将GPU(gpuR)矩阵转换为标准R矩阵?

r - Rscript在带有单引号和双引号的窗口上的行为不一致

r - 查找包含在另一列 R 中的列值

R - 更改 corrplot 轴标签的大小

r - 如何以正确的方式创建 PIL 逊相关矩阵

r - 在 R 中制作相关值的矩形矩阵,可能使用 corrplot

r - 如何在R中将一组变量转换为多列?

r - 如何在 Shiny 的 navbarPage() 上将图像插入导航栏