Date: Sun, 15 Oct 2000 22:40:45 +0200
Reply-To: Frank Poppe <Frank.Poppe@ZONNET.NL>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Frank Poppe <Frank.Poppe@ZONNET.NL>
Subject: Re: GMAP use of user-defined formats
I see three reasons why you don't get the results you expect.
One: as Paula already suggested, you have to use the DISCRETE option on the
CHORO statement to prevent SAS from using it's own algorithm to define the
Two: your format has gaps - it doesn't account for the ranges 21--24 and
31--34. These values retain their own places in the list of ranges, and use
the patterns you give.
Three: the example data you generate does produce a 0, so only 6 patterns
will be used.
Jennifer Gibson <firstname.lastname@example.org> schreef in berichtnieuws
> I'm new to GMAP, so maybe there is something obvious I'm missing. I'm
> trying to shade counties based on frequency counts of patients per county.
> For reasons I don't understand, it doesn't seem to be respecting the
> user-defined format I'm trying to apply. It disrespects the format in
> different ways depending on the exact data (I get something different, but
> wrong, with this example than I get with my actual data), so maybe there
> an more general concept I'm failing to grasp. I've also tried using the
> levels= option on the choro statement, and that gives a whole other set of
> incorrect results. I'm using v8.1 for Windows.
> Any suggestions, relevant documentation?
> *EXAMPLE PROGRAM;
> data vamap;
> set maps.uscounty;
> if state = 51;
> proc sort data=vamap out=tmpmap nodupkey; by cfips; run;
> data ptvol;
> set tmpmap(keep=cfips);
> proc format;
> value vol
> /*Using this format, I would expect the legend to contain only these 7
> levels and
> the shading to use the seven patterns defined below for each of those
> pattern1 v=s c=grayFF;
> pattern2 v=s c=ligr;
> pattern3 v=s c=ygr;
> pattern4 v=m3n135 c=gray;
> pattern5 v=m3n45 c=gray;
> pattern6 v=s c=tan;
> pattern7 v=s c=brown;
> proc gmap data=ptvol map=vamap;
> id cfips;
> format count vol.;
> choro count /cempty=black coutline=black;
> run; quit;