<?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 color change by level in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/849010#M335677</link>
    <description>&lt;P&gt;I was looking for a way to get the legend as a scale instead of separate data points. I should have clarified that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2022 17:34:11 GMT</pubDate>
    <dc:creator>dac_js</dc:creator>
    <dc:date>2022-12-11T17:34:11Z</dc:date>
    <item>
      <title>PROC GMAP color change by level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847669#M335128</link>
      <description>&lt;P&gt;I am using PROC GMAP for the first time. I need help with changing the way the legends (the 3 levels in the example) are shown in the map.&lt;/P&gt;
&lt;P&gt;For example when I am creating a sample US state map in the following way SAS is using three separate levels of colors. Changing the LEVELS = option I can get more levels but the same issue exists. Is there any way to show the&amp;nbsp;&lt;SPAN&gt;density_2020 by different state&amp;nbsp;&lt;/SPAN&gt; as a range of 0 to 10,000. (The map should not change only&amp;nbsp;I am trying to show the legends in a different way)&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;proc gmap data=sashelp.us_data map=mapssas.us;
id state;
choro density_2010 / levels=3 legend=legend1;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 21:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847669#M335128</guid>
      <dc:creator>dac_js</dc:creator>
      <dc:date>2022-12-04T21:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP color change by level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847671#M335129</link>
      <description>&lt;P&gt;Use the MIDPOINTS and RANGE option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gmap data=sashelp.us_data map=mapssas.us;
id state;
choro density_2010 / levels=3 midpoints=100 200 500 range;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Dec 2022 21:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847671#M335129</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-04T21:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP color change by level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847701#M335146</link>
      <description>&lt;P&gt;Thank you very much for your help! Is it possible to get the legend in a format like the attached map?&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78008i19B2E470D10BF4CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 01:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847701#M335146</guid>
      <dc:creator>dac_js</dc:creator>
      <dc:date>2022-12-05T01:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP color change by level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847735#M335155</link>
      <description>&lt;P&gt;Check&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;blog :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/11/18/create-a-map-with-proc-sgplot.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/11/18/create-a-map-with-proc-sgplot.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data US;
   set maps.US;
  * where StateCode NOT IN ("AK", "HI", "PR");
   by State Segment;
   if first.Segment then PolyID+1;    /* create ID variable for polygons */
run;

 
title "US States with Some Large Cities";
proc sgplot data=us ;
   polygon x=x y=y ID=PolyID / fill outline group=StateCode colorresponse=PolyID colormodel=(verylightblue verydarkblue);
   xaxis display=none;
   yaxis display=none;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1670227594165.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78022iDBD60BC350DC4C7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1670227594165.png" alt="Ksharp_0-1670227594165.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 08:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847735#M335155</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-05T08:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP color change by level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847849#M335195</link>
      <description>&lt;P&gt;Please read your initial post carefully. You say "the same issue exists" but do not state what the "issue" is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/354291"&gt;@dac_js&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am using PROC GMAP for the first time. I need help with changing the way the legends (the 3 levels in the example) are shown in the map.&lt;/P&gt;
&lt;P&gt;For example when I am creating a sample US state map in the following way SAS is using three separate levels of colors. Changing the LEVELS = option I can get more levels but the same issue exists. Is there any way to show the&amp;nbsp;&lt;SPAN&gt;density_2020 by different state&amp;nbsp;&lt;/SPAN&gt; as a range of 0 to 10,000. (The map should not change only&amp;nbsp;I am trying to show the legends in a different way)&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;proc gmap data=sashelp.us_data map=mapssas.us;
id state;
choro density_2010 / levels=3 legend=legend1;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 17:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/847849#M335195</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-05T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP color change by level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/849010#M335677</link>
      <description>&lt;P&gt;I was looking for a way to get the legend as a scale instead of separate data points. I should have clarified that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 17:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/849010#M335677</guid>
      <dc:creator>dac_js</dc:creator>
      <dc:date>2022-12-11T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP color change by level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/849011#M335678</link>
      <description>Thank you very much!</description>
      <pubDate>Sun, 11 Dec 2022 17:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GMAP-color-change-by-level/m-p/849011#M335678</guid>
      <dc:creator>dac_js</dc:creator>
      <dc:date>2022-12-11T17:34:30Z</dc:date>
    </item>
  </channel>
</rss>

