I would like to color points in a pairs plot based of certain row indexes. Here is the code I used for plotting 1 variable against another.
cases<-which(rown
Something like this?
cols <- character(nrow(iris)) cols[] <- "black" cols[iris$Species %in% c("setosa","versicolor")] <- "blue" cols[iris$Species == "virginica"] <- "red" pairs(iris,col=cols)