I created a map using gmap. I need to apply colors to different regions using a standard color scale. I tried to convert the scales using both %rgb and %cmyk macros to sas color scheme but I get totally different colors displayed. Any help? here is the code for both macros: %macro rgbconvert (r,g,b);
data _null_;
r = &r;
g = &g;
b = &b;
rgb="CX" || put(r,hex2.) || put(g,hex2.) || put(b,hex2.);
put rgb;
run;
%mend rgbconvert;
%rgbconvert (190,27,27);
%rgbconvert (208,34,38);
%rgbconvert (222,54,60);
%rgbconvert (228,93,102);
%rgbconvert (231,111,119);
%rgbconvert (234,129,136);
%rgbconvert (237,147,153);
%rgbconvert (240,165,170);
%rgbconvert (243,183,187);
%rgbconvert (246,201,204);
%rgbconvert (249,219,221);
%rgbconvert (252,237,238);
%rgbconvert (228,241,234);
%rgbconvert (203,228,222);
%rgbconvert (178,215,210);
%rgbconvert (153,202,198);
%rgbconvert (128,189,186);
%rgbconvert (103,176,174);
%rgbconvert (78,163,162);
%rgbconvert (53,150,150);
%rgbconvert (28,137,138);
%rgbconvert (3,124,126); Am suppose to get colors like deep green, light green, deep red, light red using the listed values. But am getting colors like brown, purple , blue and so on. Is there anything am doing wrong?
... View more