Dear community, Could somebody help on how I can change the colour for this plot in the heatmap plot script below to something like c("green", "green", "black", "green", "green", "black", "black", "green", "green", "black"):
###### library(gplots) library(lattice) ### loading data data <- read.csv('D:/Londa/MyData.csv') rowcolNames <- list(as.character(1980:2009), month.abb) air_data <- matrix(data , ncol = 12, byrow = TRUE, dimnames = rowcolNames) print(levelplot(air_data, col.regions=heat.colors, xlab = "year", ylab = "month", main = "New #1")) ########## Thanks for your help John [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.