gpt4 book ai didi

从 ggpairs 中删除 *(重要性)

转载 作者:行者123 更新时间:2023-12-02 16:17:31 28 4
gpt4 key购买 nike

GGally::ggpair 的最新版本中,相关值用 * 显示,如下图所示。我想删除 *s 并保留相关值。

我看过 ggpairs 代码,但它对我来说并不明显。

GGally::ggpairs(data = iris[, 1:4])

enter image description here

最佳答案

library(GGally)

GGally::ggpairs(data = iris[, 1:4],
upper = list(continuous = GGally::wrap(ggally_cor, stars = F)))

enter image description here

根据文档:

If a specific function needs its parameters set, wrap(fn, param1 = val1, param2 = val2) the function with its parameters.

starsGGally::ggally_cor 的函数参数:

logical value which determines if the significance stars should be displayed. Given the cor.test p-values...

关于从 ggpairs 中删除 *(重要性),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66268835/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com