【问题标题】:How to increase the size of the text inside the red circle of the cor plot?如何增加cor plot的红色圆圈内的文本大小?
【发布时间】:2020-04-25 11:37:23
【问题描述】:

如何增加cor plot红圈内的文字大小?

使用代码:

par(mar=c(1,1,1,1))
pairs.panels(data, 
             method = "pearson", 
             hist.col = "#00AFBB",
             density = TRUE,  
             ellipses = TRUE,
             pch = 21,
             cex = 1.5,
             cex.axis = 1.8,
             lwd = 2,
             rug = TRUE,
             stars = TRUE
)

【问题讨论】:

  • 我怀疑pairs.panels 来自一个你既没有命名也没有提供库调用来加载的包。也没有数据。根据需要调试详细信息投票结束。
  • 那么你能在ggplot中给出一个替代选项(根据我的数据编写代码)吗?我是 R 的新手

标签: ggplot2 visualization correlation psych


【解决方案1】:

最后,我得到了答案,即添加参数cex.labels = 2.5,

最终代码是

library(psych)
par(mar=c(1,1,1,1))
pairs.panels(data, 
             method = "pearson", 
             hist.col = "#00AFBB",
             density = TRUE,  
             ellipses = TRUE,
             pch = 21,
             cex = 1.5,
             cex.axis = 1.8,
             cex.labels = 2.5,
             lwd = 2,
             rug = TRUE,
             stars = TRUE
)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多