<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create Static Choro GMAP in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79427#M2950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable is in the data set, but I want it to format based on variable that may or may not be in that variable.&amp;nbsp; For example, I want a green shade for any values under 40%, so if there are not any values under 40%, I don't want green to show up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 22:19:54 GMT</pubDate>
    <dc:creator>P5C768</dc:creator>
    <dc:date>2013-01-18T22:19:54Z</dc:date>
    <item>
      <title>Create Static Choro GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79425#M2948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a basic heat map by regions using proc GMAP.&amp;nbsp; I would like to create five fixed choro ranges that don't change, even if values aren't available for that particular month (i.e. in the code below, there are no values under 40% or above 70%).&amp;nbsp; I created a ranking variable in my data set ("Change") to be modified by the proc format and in the choro statement.&amp;nbsp; However, the choro continues to work on the range of available values, ignoring the format.&amp;nbsp; Any help is appreciated.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value Change_Groups&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1="Under 40%"&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2="40%-49%"&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3="50%-59%"&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4="60%-69%"&lt;/P&gt;&lt;P&gt;&amp;nbsp; 5="70% and Up";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 v=ms c=Green;&lt;/P&gt;&lt;P&gt;pattern2 v=ms c=Lig;&lt;/P&gt;&lt;P&gt;pattern3 v=ms c=Yellow;&lt;/P&gt;&lt;P&gt;pattern4 v=ms c=Red;&lt;/P&gt;&lt;P&gt;pattern5 v=ms c=Maroon;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap&lt;/P&gt;&lt;P&gt;&amp;nbsp; map=Data_Proj&lt;/P&gt;&lt;P&gt;&amp;nbsp; data=Data_Proj;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Change Change_Groups.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id maparea;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro Change / levels=6 legend=legend1 coutline=black html=Data_html;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 18:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79425#M2948</guid>
      <dc:creator>P5C768</dc:creator>
      <dc:date>2013-01-18T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create Static Choro GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79426#M2949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your change values actually in the map data set? If so try creating a separate data set with the change varaible and the appropriate Id variable only and use it as the Data=dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 21:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79426#M2949</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-01-18T21:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Static Choro GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79427#M2950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable is in the data set, but I want it to format based on variable that may or may not be in that variable.&amp;nbsp; For example, I want a green shade for any values under 40%, so if there are not any values under 40%, I don't want green to show up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 22:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79427#M2950</guid>
      <dc:creator>P5C768</dc:creator>
      <dc:date>2013-01-18T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Static Choro GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79428#M2951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that your map= data set should be a map, and the data= data set should be your response data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will want to use code something like the following (this is not complete code, but should get you going in the right direction):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Data_Proj; set Data_Proj;&lt;/P&gt;&lt;P&gt;if Change&amp;lt;.4 then change_category=1;&lt;/P&gt;&lt;P&gt;else if Change&amp;lt;.49 then change_category=2;&lt;/P&gt;&lt;P&gt;else if Change&amp;lt;.59 then change_category=3;&lt;/P&gt;&lt;P&gt;else if Change&amp;lt;.69 then change_category=4;&lt;/P&gt;&lt;P&gt;else change_category=5;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap data=Data_Proj map=maps.us;&lt;/P&gt;&lt;P&gt;format change_category Change_Groups.;&lt;/P&gt;&lt;P&gt;choro change_category / midpoints= 1 2 3 4 5;&lt;/P&gt;&lt;P&gt;quit; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also recommend getting a good understanding of the gmap fundamentals, by reading Mike Zdeb's excellent book:&amp;nbsp; &lt;A href="http://www.amazon.com/Maps-Made-Using-Carpenters-Software/dp/1590470931" title="http://www.amazon.com/Maps-Made-Using-Carpenters-Software/dp/1590470931"&gt;http://www.amazon.com/Maps-Made-Using-Carpenters-Software/dp/1590470931&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 13:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-Static-Choro-GMAP/m-p/79428#M2951</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-01-21T13:56:47Z</dc:date>
    </item>
  </channel>
</rss>

