I am working on SOM and is generating heatmaps using the palette coolBlueHotRed.
The default coolBlueHotRed is this
coolBlueHotRed <- function(n, alpha