[R] images and maps in R

yyan liu zhliur at yahoo.com
Fri May 27 23:42:51 CEST 2005

  I have a question arising from my project. 
  A sample of the data is below. The first row stands
for the names of state in USA. The second row stand
for some numeric value in that state. Some of them are
NA. I can use the commands "data(stateMapEnv)" and
"map('state', fill = F)" in library "maps" to make a
plot of USA states. What I want to do is: 1. put the
corresponding state name on the Map 2. give different
state different colors which is related to their
value. For example, "red" for values ranging from
0-30, "green" for values from 80-90, etc. 3. if
possible, put the value of each state within the state
on the map. here, take the numeric value as some text.

Thank you very much!

91	80	NA	NA	17  33   20

More information about the R-help mailing list