@GraphGuy @Reeza @ballardw...As always, thank you very much for making my learning of SAS more interesting and with fun. I am still trying harder to interrogate graph to the core...Now I have all ten variables plotted on the map. But one thing I still think can be done but couldn't figure out is the maps all seem to have the same color scheme and hence, very difficult to study the maps individually. If one do not pay careful attention, it will appear the map has just been repeated 10 times, but each map represent a specific variable. So my problem is, can different colors be given to each variable on each map? Also, against each variable on the map comes with the name of the statistic used, that is mean in bracket, can this name be suppressed? Here is the code and output to that effect. proc gproject data=mapsgfk.us_states out=mymap degrees eastlong latlong; where state eq state; id state; run; /* Assign a color to each map type */ pattern1 v=s c=CX90B0D9; pattern2 v=s c=CX6E86A6;/*light greenish blue*/ pattern3 v=s c=CX4C5D73;/* moderate greenish blue*/ pattern4 v=s c=CX2A3440; /*dark greenish blue*/ pattern5 v=s c=CX121519; legend1 label = (position = top justify = center font = 'albany amt/bold' height = 4pct) position = top shape = bar(.15in,.15in) value = (t = 1 'Less than Q1' t = 2 'Between Q1 and Median' t = 3 'Between Median and Q3' t = 4 'Greater than Q3'); proc gmap data = final(rename = (State_FIPS_Code = State)) map = mymap; id State; choro No_Exercise Few_Fruit_Veg Obesity High_Blood_Pres Smoker Diabetes Uninsured Elderly_Medicare Prim_Care_Phys_Rate Dentist_Rate / levels = 4 legend = legend1 statistic = mean; /*Break up into groups*/ note "Map With all 10 Variables"; /*Title*/ run; quit;
... View more