Correlation matrix plot with ggplot2

前端 未结 2 1402
無奈伤痛
無奈伤痛 2020-12-31 15:31

I want to create a correlation matrix plot, i.e. a plot where each variable is plotted in a scatterplot against each other variable like with pairs() or s

2条回答
  •  猫巷女王i
    2020-12-31 16:26

    Using PerformanceAnalytics library :

    library("PerformanceAnalytics")
    chart.Correlation(df, histogram = T, pch= 19)
    

提交回复
热议问题