LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 ranges.

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.

Frank Poppe PW Consulting the Netherlands

Jennifer Gibson <jg2f@unix.mail.virginia.edu> schreef in berichtnieuws 8s7um7$gt6$1@murdoch.acc.Virginia.EDU... > SAS-L, > > 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 is > 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? > > Jennifer > > *EXAMPLE PROGRAM; > data vamap; > set maps.uscounty; > if state = 51; > cfips=county; > run; > > proc sort data=vamap out=tmpmap nodupkey; by cfips; run; > > data ptvol; > set tmpmap(keep=cfips); > count=round(ranuni(12)*100); > run; > > proc format; > value vol > 0='0' > 1-5='1-5' > 6-10='6-10' > 11-15='11-15' > 15-20='15-20' > 25-30='25-30' > 35-high='35+'; > run; > /*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 > levels*/ > > 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; > >


Back to: Top of message | Previous page | Main SAS-L page