Plotting Correlation matrix
1
1
Entering edit mode
14 months ago
Zhiyi ▴ 20

Hi,

I'm trying to plot a correlation matrix such that the color of each square correspond to the correlation coefficient (deeper color -> higher correlation), while the size of the square corresponds to the pval (larger square -> more significant pval).

Is there any R / python package that can plot such a correlation matrix (as shown)? (The figure is from https://www.nature.com/articles/ng.3406#Sec20)

enter image description here

correlation python R matrix • 850 views
ADD COMMENT
2
Entering edit mode
ADD COMMENT
0
Entering edit mode

It seems in this package the size of the square corresponds to the correlation coefficient instead of the pvalue. Is there a way to make larger squares to correpond to more significant p-values?

ADD REPLY
1
Entering edit mode

I don't think the package has that sort of customization available. It's open source, so feel free to modify the code and share your modified code when you publish the figure.

ADD REPLY

Login before adding your answer.

Traffic: 2036 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6