Colorizing as SAS Map
- by user601828
I'm trying to generate a map in SAS where I would like to to make gradual color changes which correspond to my results. So the higher the counts the more intense the color changes. Also I would like to add state labels to the map. Here is my code, so far it produces a white map with varying degress of blue blocks. I'd like the states colored in intense colors, like red, bright pink,brilliant, blues and greens.
Can anyone please help me modify the code to add state labels and colorize the map,
and below the map add a table summarizing the statistics, like counts and percentages.
Thanks in advance.
goptions gunit=pct cback=white htitle=4 htext=3
colors=(PAGY LIY STY DEGY dark_yellow very_dark_yellow ) ;
title "My Map Results";
proc gmap map=maps.us data=My_data all;
id state;
block person_per_event/levels=6;
choro person_per_event/levels=6;
run; quit;
I looked at his page before for example if I wanted to make a map like this one http://robslink.com/SAS/democd61/election_2012.htm
with my data. I tried modifying the code that he gives on the link, but wasnt very successful. I would like to use that map along with the state labels and keep the colors and represent my data with blocks in the corresponding locations with city and state, and high level counts. The rest of the summary statistics I would like to summarize in a colorful table next to the map, like a dashboard of sorts. Appreciate any help in advance.
Thanks,
-rachel