<?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 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/573476#M18488</link>
    <description>&lt;P&gt;You have one work-around in hand, but I would propose another ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than hard-coding the all the ranges in a user-defined-format, I would recommend just over-riding the bad range for the first (missing) value in the legend statement. The t=1 specifies the first item in the legend, and the '.' is the value you want to show there instead of the default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;legend1&lt;BR /&gt;origin=(2,10) pct&lt;BR /&gt;mode=share&lt;BR /&gt;across=1&lt;BR /&gt;label=none&lt;BR /&gt;value=(j=r &lt;STRONG&gt;t=1 '.'&lt;/STRONG&gt;)&lt;BR /&gt;shape=bar(3,4) pct;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gmap map= GreatChina data= userdata.p2pdata1;&lt;BR /&gt;id id;&lt;BR /&gt;title' Platform Collapse Rate';&lt;BR /&gt;choro ratio /&lt;BR /&gt;legend=legend1&lt;BR /&gt;coutline=gray44&lt;BR /&gt;anno=anno_label&lt;BR /&gt;midpoints= .1 TO .9 BY .2&lt;BR /&gt;range&amp;nbsp;&lt;BR /&gt;missing;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eco_heatmap.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31040iF5F1464E26A267DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="eco_heatmap.png" alt="eco_heatmap.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 12:55:06 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2019-07-15T12:55:06Z</dc:date>
    <item>
      <title>PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572167#M18452</link>
      <description>&lt;P&gt;Hi guys, I have a question about PROC GMAP. I am drawing a heatmap and I have some provinces no case which I have regard as missing and the data is '.'. After that, I want to divide the rest of the data into 5 groups :[0-0.2], (0.2-0.4]... until (0.8,1]. Therefore I use "midpiont 0.1 to 0.9 by 0.2 Range". However, the heatmap does not give me a missing part but a "0.45-0". I am quite confused and do not know how to solve it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572167#M18452</guid>
      <dc:creator>Eco</dc:creator>
      <dc:date>2019-07-09T18:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572169#M18453</link>
      <description>&lt;P&gt;Here is the Data set and the final graph. You can see that 0.45-0, it should be the position for MISSING.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="捕获.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30887iCB247B2CD81DFA9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="捕获.PNG" alt="捕获.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 17:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572169#M18453</guid>
      <dc:creator>Eco</dc:creator>
      <dc:date>2019-07-09T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572171#M18454</link>
      <description>&lt;P&gt;You posted this question to the SAS Visual Analytics community, which does not seem like the correct location. Are you using SAS Visual Analytics? Or are you just using PROC GMAP code?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 17:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572171#M18454</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2019-07-09T17:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572173#M18455</link>
      <description>Sorry, I think it is only related to GMAP. This is my first time to use the community.</description>
      <pubDate>Tue, 09 Jul 2019 17:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572173#M18455</guid>
      <dc:creator>Eco</dc:creator>
      <dc:date>2019-07-09T17:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572179#M18456</link>
      <description>I've moved the post to the graphics forum.</description>
      <pubDate>Tue, 09 Jul 2019 18:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572179#M18456</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-09T18:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572180#M18457</link>
      <description>Thank you very much~Sorry for the inconvenience.</description>
      <pubDate>Tue, 09 Jul 2019 18:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572180#M18457</guid>
      <dc:creator>Eco</dc:creator>
      <dc:date>2019-07-09T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572230#M18458</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/196117"&gt;@Eco&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi guys, I have a question about PROC GMAP. I am drawing a heatmap and I have some provinces no case which I have regard as missing and the data is '.'. After that, I want to divide the rest of the data into 5 groups :[0-0.2], (0.2-0.4]... until (0.8,1]. Therefore I use "midpiont 0.1 to 0.9 by 0.2 Range". However, the heatmap does not give me a missing part but a "0.45-0". I am quite confused and do not know how to solve it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H4 class="xis-argument"&gt;RANGE&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimple"&gt;causes GMAP to display, in the legend, the starting value and ending value of the range around each midpoint specified with the MIDPOINTS= option&lt;/P&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So what that means is the displayed value will be the actual largest and smallest value that &lt;STRONG&gt;occurs&lt;/STRONG&gt; in your data for the interval.&lt;/P&gt;
&lt;P&gt;If you want to show specific ranges in the legend then you will need to work on the legend and not rely on the RANGE option, especially if you want a "missing" entry. A custom format assigned to the actual midpoints specified often works such as:&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
value ratio
. = 'Missing'
.1= '[0-0.2]'
.3='(0.2-0.4]'
.5='(0.4-0.6]'
.7='(0.6-0.8]'
.9='(0.8-1]'
;
run;

proc gmap map= GreatChina data= p2pdata1;
    id id;
   title' Platform Collapse Rate';
    choro ratio/  legend=legend1 
                  coutline=gray44  
                  anno=anno_label 
                  midpoints= .1 TO .9 BY .2 
/*                  range */
                  missing
   ;   
   format ratio ratio.;
run;
quit;&lt;/PRE&gt;
&lt;P&gt;You may need to work with your legend code and the format&amp;nbsp;definition a bit to get desired alignments&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572230#M18458</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-09T19:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572285#M18460</link>
      <description>&lt;P&gt;I see...It seems I go to the wrong way. Thank you for your recommendation~&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 02:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572285#M18460</guid>
      <dc:creator>Eco</dc:creator>
      <dc:date>2019-07-10T02:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572392#M18463</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/196117"&gt;@Eco&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I see...It seems I go to the wrong way. Thank you for your recommendation~&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not exactly wrong just not quite understanding the options involved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I spent a lot of time making different maps, often getting things not quite as I needed, learning some of the interactions of the options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The RANGE option is very useful when you do not want specific values to appear in the legend. I will typically use it more often in the beginning stages of working with new data or client requests while exploring possible options for designing a display. Also it is very appropriate to use RANGE with the LEVELS option and especially when doing BY group processing where you might make a series of maps on related topics such as sales totals of different products. You would very likely want the legend to display the actual range of values represented by the map colors in that case.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 15:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/572392#M18463</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-10T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/573476#M18488</link>
      <description>&lt;P&gt;You have one work-around in hand, but I would propose another ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than hard-coding the all the ranges in a user-defined-format, I would recommend just over-riding the bad range for the first (missing) value in the legend statement. The t=1 specifies the first item in the legend, and the '.' is the value you want to show there instead of the default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;legend1&lt;BR /&gt;origin=(2,10) pct&lt;BR /&gt;mode=share&lt;BR /&gt;across=1&lt;BR /&gt;label=none&lt;BR /&gt;value=(j=r &lt;STRONG&gt;t=1 '.'&lt;/STRONG&gt;)&lt;BR /&gt;shape=bar(3,4) pct;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gmap map= GreatChina data= userdata.p2pdata1;&lt;BR /&gt;id id;&lt;BR /&gt;title' Platform Collapse Rate';&lt;BR /&gt;choro ratio /&lt;BR /&gt;legend=legend1&lt;BR /&gt;coutline=gray44&lt;BR /&gt;anno=anno_label&lt;BR /&gt;midpoints= .1 TO .9 BY .2&lt;BR /&gt;range&amp;nbsp;&lt;BR /&gt;missing;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eco_heatmap.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31040iF5F1464E26A267DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="eco_heatmap.png" alt="eco_heatmap.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 12:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP/m-p/573476#M18488</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-07-15T12:55:06Z</dc:date>
    </item>
  </channel>
</rss>

