LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2012, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 17 Feb 2012 20:23:56 -0500
Reply-To:   Nat Wooding <nathani@VERIZON.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Nat Wooding <nathani@VERIZON.NET>
Subject:   Re: Pro gmap: display values of response variable on the map
In-Reply-To:   <CAAMsFnqH82Dskc5XBzFck8150UXYfwFZie9=J5MU4uvcCBVmXA@mail.gmail.com>
Content-Type:   text/plain; charset="US-ASCII"

Tom

Since I haven't seen any replies to your question, I will offer a partial suggestion. I don't know which SAS version you are using but take a look at the 9.1 documentation for GMAP and in particular, example 6. It shows how to add a label to each segment of the map using the SAS Annotate facility. Annotate lets you add stuff to a map or plot and it can be driven by input data, in your case, the values of the variable Jamount. As for the 21 colors, you may have to specify them in a GOPTIONS colors = list and to get 21 shades, I expect that you will have to use the hexadecimal definitons of the colors. As I recall, SAS has some documentation on doing this.

HTH

Nat Wooding

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Tom Cohen Sent: Friday, February 17, 2012 7:22 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Pro gmap: display values of response variable on the map

Hi list,

I am new to gmap and would need your help to display the values of response variable 'Jamount' on the map.The 'Jamount' contains *21* values,some of these values are negative.I also want the counties which have the negative values having different color gradients starting from white (smallest value) to red.In the same way I want the counties with positive values having green color starting from dark green (highest value)*. *

* My gmap codes; * proc* *gmap* map=Sweden data=Jan all; id county; choro Jamount /levels=*21* ; *run*;*quit*;

Thanks in advance. Tom


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