[R] Using color and plotting characters in a scatterplot matrix [Newbie Help]

pfc_ivan pfc_ivan at hotmail.com
Wed Feb 4 08:58:42 CET 2009


I figured out how to do the rest, the only thing I need to do now is to
somehow change the numbers which are < 90 to a character string "low" . The
values which are between 100 - 90 to convert to character string "medium".
And the values larger than 100 to convert to character string "high". Then I
would use this line. 

plot(thrust~amtemp, jet, col=as.numeric(jet$amtemp),
pch=as.numeric(jet$amtemp))

The thing is that I dont know how to convert those numerical values into
"low" "medium" and "high" 

Hmm, but then when I think about it better if its changed to the strings
above, it wont remember the exact numerical value. 

Basically what I want to do is make a scatterplot and then just change the
color and the symbol of those 3 groups so they can be distinguished on the
graph.
-- 
View this message in context: http://www.nabble.com/Using-color-and-plotting-characters-in-a-scatterplot-matrix--Newbie-Help--tp21824880p21825882.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list