how to plot correlation data in R
Hi,
I have got spearman's correlation and P value like below in two separate files. Could anyone please suggest how I can make an input file after filtering strong, and significant correlation from these two files? I just want to take pVal<.01,abs(correlation)>.4. and How I can plot it in R?
Correlation.txt
SB_2 SB_12 SB_17 SB_18 SB_20 SB_23 SB_26
DMA -0.42 -0.25 -0.06 -0.32 -0.18 -0.18 -0.28
Rice_AsV-0.67 -0.53 -0.34 -0.67 -0.36 -0.45 -0.34
Pvalue.txt
SB_2 SB_12 SB_17 SB_18 SB_20 SB_23 SB_26
DMA 0.001 0.05 0.65 0.016 0.190 0.182 0.03
Rice_AsV2.87E 3.60E 0.010 2.53E 0.006 0.00 0.00
• 1,308 views
•
link
1 answer
Hello,
Please take a look at corrplot in R. There is an extensive vignette: https://cran.r-project.org/web/packages/corrplot/vignettes/corrplot-intro.html
Kind regards,
Kevin
• 0 views
•
link
Log in to answer this question.