<?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: PROC GMAP with threecolorramp style in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620261#M19356</link>
    <description>&lt;P&gt;Here's a way to get a 3-color color ramp, if you use Proc SGmap (instead of Proc Gmap), and if you have the latest version (found in Viya 3.5), which has support for the colormodel= option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgmap maprespdata=sashelp.us_data mapdata=mapsgfk.us;&lt;BR /&gt;choromap population_2010 / mapid=statecode id=statecode&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;colormodel=(cxFF0000 cxF3F7FE cx6497EB)&lt;/STRONG&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgm070.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35639i5BD3A617BD63FB7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgm070.png" alt="sgm070.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 18:05:53 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2020-01-27T18:05:53Z</dc:date>
    <item>
      <title>PROC GMAP with threecolorramp style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/617825#M19316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a choropleth map on a three color gradient scale. I am defining the colorramp through proc template (following this guide&amp;nbsp;&lt;A href="http://support.sas.com/kb/41/776.html" target="_blank"&gt;http://support.sas.com/kb/41/776.html&lt;/A&gt;). I can replicate the example and change colors in the twocolorramp, but as soon as I change the style to threecolorramp, the coloring appears to revert to default. Am I missing something in the threecolorramp statement or elsewhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path(prepend) Work.Templat(update);

goptions reset=all;  
goptions gunit=pt htitle=14 htext=8 ftitle="arial" ftext="arial/bold" cback='white';

proc template;
   define style styles.colorramp;
   parent=styles.default;

   /* Define a lighter and darker shade of blue for the starting and ending colors. */
/*   style twocolorramp / startcolor=cxF3F7FE endcolor=cx6497EB;*/
 style threecolorramp / startcolor=cxFF0000 neutralcolor=cxF3F7FE endcolor=cx6497EB;&lt;BR /&gt;
   end;
run;

ods listing style=styles.colorramp;
proc gmap data=maps.us map=maps.us;
   id state;
   choro state;
run;
quit; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 TS1M6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help in advance,&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/617825#M19316</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2020-01-16T16:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP with threecolorramp style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620248#M19355</link>
      <description>&lt;P&gt;Have you seen it documented anywhere that Proc Gmap can use a 'threecolorramp' from an ODS style?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 17:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620248#M19355</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-01-27T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP with threecolorramp style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620261#M19356</link>
      <description>&lt;P&gt;Here's a way to get a 3-color color ramp, if you use Proc SGmap (instead of Proc Gmap), and if you have the latest version (found in Viya 3.5), which has support for the colormodel= option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgmap maprespdata=sashelp.us_data mapdata=mapsgfk.us;&lt;BR /&gt;choromap population_2010 / mapid=statecode id=statecode&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;colormodel=(cxFF0000 cxF3F7FE cx6497EB)&lt;/STRONG&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgm070.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35639i5BD3A617BD63FB7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgm070.png" alt="sgm070.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 18:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620261#M19356</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-01-27T18:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP with threecolorramp style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620400#M19357</link>
      <description>&lt;P&gt;Hello Dr. Allison,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying to my post. This looks like an excellent solution and I will work with the map more in SGMAP rather than GMAP. Unfortunately, my organization does not have Viya so I get an error when trying the&amp;nbsp;&lt;STRONG&gt;colormodel=&amp;nbsp;&lt;/STRONG&gt;option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help on this!&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 23:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620400#M19357</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2020-01-27T23:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP with threecolorramp style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620401#M19358</link>
      <description>&lt;P&gt;Hi Dr. Allison,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not see documentation specifically on using threecolorramp in PROC GMAP. I only saw it for PROC TEMPLATE and just assumed that if twocolorramp works, then threecolorramp should work as well. Since I was having issues with that, I thought perhaps my assumption was misguided, which is why I turned to SAS communities &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 23:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-threecolorramp-style/m-p/620401#M19358</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2020-01-27T23:48:12Z</dc:date>
    </item>
  </channel>
</rss>

