I am creating heatmaps for multiple matrices and would like to be able to compare them easily. However, the mins and maxes of these matrices are different so the color bar minimum and maximum values are different across heatmaps. Is there a way to set the minimum and maximum values for the color bar manually?
My code is pretty simple but this is all I'm doing now.
heatmap3(X, Rowv=NA, Colv=NA, useRaster=TRUE, scale='none',
col=colorRampPalette(c("blue", "white", "red"))(1024))
I am creating heatmaps for multiple matrices and would like to be able to compare them easily. However, the mins and maxes of these matrices are different so the color bar minimum and maximum values are different across heatmaps. Is there a way to set the minimum and maximum values for the color bar manually?
My code is pretty simple but this is all I'm doing now.