Skip to content
Prev 134230 / 398498 Next

color ranges on a 2D plot

r-help-bounces at r-project.org napsal dne 17.01.2008 15:08:40:
Other option is to subset vector of colors

colvec<-c("blue", "red")
plot(z, col=colvec[(z$y>=.5)+1])

Regards
Petr
http://www.R-project.org/posting-guide.html