I have made a "heatmap" similar to the first one here (the grey one): https://stats.stackexchange.com/questions/9050/how-to-display-a-matrix-of-correlations-with-missing-entries
This was done using ggfluctuation, which is part of the ggplot2 package.
x=read.table(file="mydata.csv", sep =",", h=T)
row.names(x)<-x[,1]
x<-x[,2:3]
mat=data.matrix(x)
ggfluctuation(as.table(mat)) + theme(legend.position="none") + labs(x="", y="") + theme(axis.text.x = element_text(angle = 90, hjust = 1)) + scale_size_area() + labs(title = "main title")
1) I would like to make a legend, which indicates the values that corresponds to the diffent sizes of the squares - is that possible
2 ) I am making multiple heat maps, so I would like to scale the squares so the same size corresponds to the same value in all of my heat maps. Can this by done.