[R] multi-color plot

Saurav Pathak saurav at sas.upenn.edu
Thu Feb 13 03:53:02 CET 2003


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?

thanks for any help.

-- 
saurav




More information about the R-help mailing list