| Date: | Mon, 7 Jul 2003 13:35:02 -0700 |
| Reply-To: | Jishnu <jishguha@YAHOO.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Jishnu <jishguha@YAHOO.COM> |
| Organization: | http://groups.google.com/ |
| Subject: | ANNOTATE |
| Content-Type: | text/plain; charset=ISO-8859-1 |
hI ALL,
BY THE CODE BELOW i AM TRYING TO ANNOTATE , BUT I CAN NOT GET THE
LABELLING OF THE STATES SUCCESSFUL.
ods listing close;
ods html file="E:/your_filename.htm";
goptions reset = all
device = activex
xpixels = 640
ypixels = 480
cback = white
border
gunit = pct
htext = 3
ftext=swiss ;
data center;
length function $ 8;
retain flag 0 xsys ysys '2' hsys '3' when 'a'
style 'swiss';
set maps.ussenter
(where=(fipstate(state) ne 'DC')
drop=long lat);
function='label';
text=fipstate(state);
size=2.5;
position='5';
if ocean='Y' then
do;
position='6';
output;
function='move';
flag=1;
end;
else if flag=1 then
do;
function='draw';
size=.25;
flag=0;
end;
output;
run;
proc gmap map=maps.us data=mapnew;
id state;
choro Number_of_Accounts/ annotate=center;
run;
quit;
ods html close;
ods listing;
|