Hi, I am trying to set the color scale in filled.contour based on a specific value instead of a relative position. Specifically, I want the values below 0 to be in a gradient of green, and those above 0 to be red. 0 would be white.
I tried: posZero = abs(min(z)) / (abs(min(z)) + max(z)); filed.contour(..., col = designer.colors(n=30, col=c("green", "white", "red"), x=c(0, posZero, 1))) but it does not center the white on the zero. Thanks for your help, Rand -- View this message in context: http://r.789695.n4.nabble.com/filled-contour-colors-tp3164639p3164639.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list 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.