I have a small matrix with numbers that I want to trnsfer into a heatmap and keep the numbers inside. This is the data:
print(cor.matrix)
stock.GLS stock.NVS stock.PLX
stock.GLS 1.0000000 0.4078177 0.2416839
stock.NVS 0.4078177 1.0000000 0.1485917
stock.PLX 0.2416839 0.1485917 1.0000000
And this is how I make the heatmap.
I want the numbers to go inside the squares like here [display a matrix, including the values, as a heatmap, but using this package. Any idea?
library(ComplexHeatmap)
Heatmap(cor.matrix,
cluster_columns=FALSE,
cluster_rows=FALSE
)