I have 2 dataframe with same genes both different data sets
like
> head(heat1[1:3,1:4])
A10 A11 A12 A2
ATP5F1 2.1163092 0.32044094 -0.5661269 0.7978236
DDX5 0.6277182 -1.67055853 -0.0123082 0.8895472
EEF1G 1.6459212 0.02923401 -1.2737676 0.5842162
>
> head(heat2[1:3,1:4])
A10 A12 A3 A4
A2M -0.6031969 0.6378864 0.000573381 -0.07769313
ABCB11 0.5600164 0.3087120 0.171636836 1.25681512
ABCC2 0.2093133 -0.5608016 0.782278709 0.16618683
>
I want to plot them side by side with the same order of genes
I tried
> ht1 = Heatmap(heat1)
> ht2 = Heatmap(heat2)
> ht_list = ht1 + ht2
> draw(ht_list, ht_gap = unit(1, "cm"))
Warning message:
Row names of heatmap 2 is not consistent as the main
heatmap (1)
But I getting not the same order of genes
Can you help me with this?