max -> maxColorValue for rgb() function that is used for heatmaps. This resolves a R CMD CHECK issue