[R] images and maps in R

From: yyan liu <zhliur_at_yahoo.com>
Date: Sat 28 May 2005 - 07:42:51 EST

  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

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 28 07:46:53 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:13 EST