【发布时间】:2022-02-24 10:09:07
【问题描述】:
这可能是一个简单的问题。 我有一个 df,我想在 R 中为我的数据生成一个相关图。
head(df)
x y
1 -0.10967469 1
2 1.06814661 93
3 0.71805993 46
4 0.60566332 84
5 0.73714006 12
6 -0.06029712 5
我找到了一个名为 corPlot 的包,并根据 pearson 和 spearman 方法生成了两个图。
corPlot(df, method = 'pearson')
corPlot(df, method = 'spearman')
这是我使用 pearson 方法的输出:
我想知道是否有另一个包可以生成我不知道的相同相关图?
提前致谢,
【问题讨论】:
-
是的,但也许你能解释一下你对当前情节的问题是什么?
标签: r plot correlation pearson