Thus spake Sundar Dorai-Raj:
+ R> plot(x=1:26,y=rep(0:1,13),type="n")
+ R> text(x=1:26,y=0.5,labels=letters,col=terrain.colors(26))
now i get it. what i am doing now is:
R> mycol <- cls
R> mycol[mycol==0] <- "red"
R> mycol[mycol==1] <- "blue"
R> mycol[mycol==2] <- "green"
R> plot(x, y, typ
Saurav Pathak wrote:
hi all,
i am trying to make multi-color plots. that is, i generally use,
plot(x, y, type="n")
text(x, y, labels=class)
here, the vector class denotes the class of each point. there are
usually 3-4 classes of points. how may i display the different
classes in differen
hi all,
i am trying to make multi-color plots. that is, i generally use,
plot(x, y, type="n")
text(x, y, labels=class)
here, the vector class denotes the class of each point. there are
usually 3-4 classes of points. how may i display the different
classes in different colors?