Hey Robert, I have being struggling with your code samples but am not getting through. This is my code, maybe am doing something wrong but I can't fish it out. Please I need your help again. The labels are for the map on the link https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/using-colors-on-maps-gmap/m-p/457338#M15728 Here is the code I have written so far data anno_drawarrow;
length function $8 color $8;
set annolabel;
flag= 0;
xsys='2'; ysys='2'; hsys='3'; when='a';
function='label'; color='black'; size=2.5;
if id not in (ab, md, un, cd) then
do;
text=incidence; position='5';
output;
end;
else if id in (ab, md, un, cd)then
do;
text=incidence; position='6'; output;
function='move'; text=''; position='';
flag=1;output;
end;
if flag=1 then
do;
position=''; text='';
function='draw'; size=.25;
flag=0;output;
end;
run;
here ist the maplabel data. I want some labels to go outside the map and use arrows to label them
... View more