Create a heatmap of only significant correlations
1
0
Entering edit mode
2.5 years ago
mropri ▴ 160

I used the corr.test function to get the correlation values between two matrices and their p adjusted values.:

test <- corr.test(x, y, method="spearman", adjust="BH")

I have the correlation in test$r and the p adjusted values in test$p.adj. The rownames and colnames of both matrices are the same

I would like to create a heatmap where I only show correlations that pass the p.adj values of <0.5. Any help is appreciated

Correlation Protein expression heatmap • 797 views
ADD COMMENT
2
Entering edit mode
2.5 years ago
Ram 44k

Look at corrplot. I think it'll address your requirements very well.

ADD COMMENT
0
Entering edit mode

Thank you, corr plot does fill the requirements for my question.

ADD REPLY

Login before adding your answer.

Traffic: 1666 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