I have been trying to find a way to label my cluster with the colors I want using factors. I am not having a good time. I can make the plot I'm looking for but how can I make it so I specify that my ordered factors have ordered colors (1= "blue", 2="green", 3="red")?
x <- c(rnorm(10,1,1),rnorm(10,10,1),rnorm(10,10,1)) y <- c(rnorm(10,10,1),rnorm(10,10,1),rnorm(10,1,1)) f<- factor(c(rep(1,10),rep(2,10),rep(3,10))) plot(y~x, col=f) Thanks Hans [[alternative HTML version deleted]] ______________________________________________ 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.