Colorizing as SAS Map

Posted by user601828 on Stack Overflow See other posts from Stack Overflow or by user601828
Published on 2012-12-14T18:22:31Z Indexed on 2012/12/15 5:04 UTC
Read the original article Hit count: 277

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about maps

Related posts about sas