Wednesday, November 9, 2011

Beautiful geographical picture in SAS


You may have some geographacial data and want to present it a easily understandable way, how can we do that in SAS? Here are some example output we can make in SAS:



The coding part is relative easy, copy the following code and run in SAS, you will get some similar output: 


/**********************************/
goptions gunit=pct cback=white htitle=4 htext=3
colors=(PAGY LIY STY DEGY dark_yellow very_dark_yellow ) ;
title1 "US Population in 1990";
proc gmap map=maps.us data=maps.uscity all;
id state;
block pop/levels=6;
choro pop/levels=6;
run; quit; 
/***********************************/




No comments:

Post a Comment