Plots for Correlation between two dataframes by row
1
0
Entering edit mode
2.8 years ago
pixie@bioinfo ★ 1.5k

I have two data frames:

df1

id       Z_score_0hr Z_score_1hr Z_score_6hr
1         11.22      25.33      66.47
2         33.56      33.77      44.77

df2

id       Z_score_0hr Z_score_1hr Z_score_6hr
1         7.55      45      30
2         45.09     29      36.6

I need to find pairwise correlation between the two dataframes. I followed this post (https://stackoverflow.com/questions/9136116/correlation-between-two-dataframes-by-row)

and now I have the pairwise correlation values for each row between df1 and df2. I wanted some ideas regarding plots, scatter plots or others, with which I could represent or highlight those rows which have a high correlation value. Any inputs is greatly appreciated.

R • 1.3k views
ADD COMMENT
0
Entering edit mode
2.8 years ago

Hi, corrplot comes to mind. Make use of order = 'hclust' to help emphasise similar rows of high|low correlation

ADD COMMENT

Login before adding your answer.

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