我如何在R中像我做python(seaborn package)一样做一个关节图

Aja*_*hri 4 python visualization r seaborn

我如何在R中像我做python(seaborn package)一样做一个关节图

在python中

import seaborn as sns
sns.jointplot(bigdiamonds["price"], bigdiamonds["carat"])

<seaborn.axisgrid.JointGrid at 0x207230b0>
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

如何在R中执行此操作?

Aja*_*hri 6

谢谢马吕斯

我是从博客文章中做到这一点的

devtools::install_github("WinVector/WVPlots")
library(WVPlots)
ScatterHist(diamonds, "price", "carat")
Run Code Online (Sandbox Code Playgroud)

并得到这个

在此处输入图片说明