I have the following (small) melted data. Its a R RDS file, best way to transfer R datasets! You need data.table
library.
> urlf = 'http://emboss.math.yorku.ca/results/ove_m_rds'
> ove.m = readRDS(gzcon(url(urlf))) ##download the data.table
Basically, I have the following code to make a heat plot of the data:
gg = ggplot(ove.m, aes(variable, state))
gg = gg + geom_tile(aes(fill = value), colour = "white")
gg = gg + scale_fill_gradient(low = "white", high = "#1f78b4")
But the problem with this is the colors are adjusted to ALL the values in the matrix. I want the colors to represent the column only. So the resulting heat map looks like the following for the above data: