Hi all, I am trying to plot a U.S. map using the data I have. So far I was able to get a map like the following:
But I want to add state names on the map as well as the data values for each state. How can I do that?
To give you a sense of what the data looks like, below I grab a couple of data for you:
Thanks!
Code:
spmap pct_gedtimehi using uscoord if id !=1 & id!=4 & id!=13 & id!=53 & id!=54 & id!=55, id(id) /// fcolor(BuRd) ocolor(white ..) osize(thin ..) legend(position(8))
But I want to add state names on the map as well as the data values for each state. How can I do that?
To give you a sense of what the data looks like, below I grab a couple of data for you:
Code:
list id NAME pct_gedtimehi in 1/9 +--------------------------------+ | id NAME pct_ge~i | |--------------------------------| 1. | 1 Alaska 0.63 | 2. | 2 Alabama 0.87 | 3. | 3 Arkansas 0.55 | 4. | 4 American Samoa 0.93 | 5. | 5 Arizona 0.63 | |--------------------------------| 6. | 6 California 0.55 | 7. | 7 Colorado 0.75 | 8. | 8 Connecticut 0.76 | 9. | 10 Delaware 0.69 | +--------------------------------+
Comment