ghorbani
(MA Ghorbani)
1
Hi,
Consider three lists as below:
data1 = {11.22, 12.29, 12.97, 14.15, 17.33, 17.60, 16.62, 14.43,
13.62, 11.01};
data2 = {12.29, 12.97, 14.15, 17.33, 17.60, 16.625`, 14.43, 13.62,
11.01, 9.25};
data3 = {12.97, 14.15, 17.33, 17.60, 16.625`, 14.43, 13.62, 11.016,
9.25, 9.48};
How do I plot a correlation matrix like this:
shenghuiy
(Shenghui Yang)
2
Correlation[{data1, data2, data3}] // MatrixPlot[#, ColorFunction → “Rainbow”, PlotLegends → Automatic] &
ghorbani
(MA Ghorbani)
3
Thank you Yang.
Let me know how I can plot the below plot too.
shenghuiy
(Shenghui Yang)
4
Try this code
Apply[Correlation,Tuples[{data1,data2,data3},2]//Partition[#,3,3]&,{2}]//MatrixPlot[#,ColorFunction->"DeepSeaColors",PlotLegends->Automatic]&