Python plotly.tools.FigureFactory.create_scatterplotmatrix 的 R 等价物?
The R equivalent of the Python plotly.tools.FigureFactory.create_scatterplotmatrix?
我正在尝试在 R 中重新创建 Python 绘图教程中的散点图矩阵:
http://moderndata.plot.ly/using-plotly-in-jupyter-notebooks-on-microsoft-azure/
我在 R 中有数据框,但 R 中用于重新创建以下 Python 调用的等效绘图代码是什么?
fig = FigureFactory.create_scatterplotmatrix(
df, diag='histogram', index='manufacturer',
height=800, width=800,
title='Motor Trend Car Road Tests Scatterplot Matrix'
)
GGally 包中的 ggairs()
函数可以通过 ggplot2 轻松创建广义对图(例如散点图矩阵),并且 ggplotly()
知道如何将它们转换为 plotly。
library(GGally)
library(plotly)
ggplotly(ggpairs(iris))
我正在尝试在 R 中重新创建 Python 绘图教程中的散点图矩阵:
http://moderndata.plot.ly/using-plotly-in-jupyter-notebooks-on-microsoft-azure/
我在 R 中有数据框,但 R 中用于重新创建以下 Python 调用的等效绘图代码是什么?
fig = FigureFactory.create_scatterplotmatrix(
df, diag='histogram', index='manufacturer',
height=800, width=800,
title='Motor Trend Car Road Tests Scatterplot Matrix'
)
GGally 包中的 ggairs()
函数可以通过 ggplot2 轻松创建广义对图(例如散点图矩阵),并且 ggplotly()
知道如何将它们转换为 plotly。
library(GGally)
library(plotly)
ggplotly(ggpairs(iris))