<?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 how to write sas code to display my data on map in sas in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-write-sas-code-to-display-my-data-on-map-in-sas/m-p/548051#M8475</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an analysis result that I want to display it on the map. The result include 9 US regions and their VL suppression rate categorized by&amp;nbsp;two groups: durable suppressed and never suppressed. the dataset looks like this:&lt;/P&gt;
&lt;P&gt;US Region&amp;nbsp; Durable&amp;nbsp;&amp;nbsp; Never&lt;/P&gt;
&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 84&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 79&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56&lt;/P&gt;
&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;67&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;........&lt;/P&gt;
&lt;P&gt;I am new to the SAS proc gmap and I am not sure how to write a sas code to display those numbers on the map. I am thinking to either create two maps or one map to display these results.&lt;/P&gt;
&lt;P&gt;anybody can help me. thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 21:11:53 GMT</pubDate>
    <dc:creator>juliajulia</dc:creator>
    <dc:date>2019-04-02T21:11:53Z</dc:date>
    <item>
      <title>how to write sas code to display my data on map in sas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-write-sas-code-to-display-my-data-on-map-in-sas/m-p/548051#M8475</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an analysis result that I want to display it on the map. The result include 9 US regions and their VL suppression rate categorized by&amp;nbsp;two groups: durable suppressed and never suppressed. the dataset looks like this:&lt;/P&gt;
&lt;P&gt;US Region&amp;nbsp; Durable&amp;nbsp;&amp;nbsp; Never&lt;/P&gt;
&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 84&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 79&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56&lt;/P&gt;
&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;67&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;........&lt;/P&gt;
&lt;P&gt;I am new to the SAS proc gmap and I am not sure how to write a sas code to display those numbers on the map. I am thinking to either create two maps or one map to display these results.&lt;/P&gt;
&lt;P&gt;anybody can help me. thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 21:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-write-sas-code-to-display-my-data-on-map-in-sas/m-p/548051#M8475</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2019-04-02T21:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to write sas code to display my data on map in sas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-write-sas-code-to-display-my-data-on-map-in-sas/m-p/548061#M8476</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16488"&gt;@juliajulia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an analysis result that I want to display it on the map. The result include 9 US regions and their VL suppression rate categorized by&amp;nbsp;two groups: durable suppressed and never suppressed. the dataset looks like this:&lt;/P&gt;
&lt;P&gt;US Region&amp;nbsp; Durable&amp;nbsp;&amp;nbsp; Never&lt;/P&gt;
&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 84&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 79&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56&lt;/P&gt;
&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;67&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;........&lt;/P&gt;
&lt;P&gt;I am new to the SAS proc gmap and I am not sure how to write a sas code to display those numbers on the map. I am thinking to either create two maps or one map to display these results.&lt;/P&gt;
&lt;P&gt;anybody can help me. thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you have a map set of the regions? That would be the first thing. You would want to have a variable in the map data that matches your example data with the region identification values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to display different colors or patterns for the region based on the value of a variable?&lt;/P&gt;
&lt;P&gt;You have two variables neither named "VL suppression rate". Which value is the "rate". Or do you want to display both numbers in the region?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With proc gmap the approach is to create an Annotate data set which would have the text value you want to display, the x,y coordinates and a function call to say "display text". There are a set of SAS supplied macros to help with that.&lt;/P&gt;
&lt;P&gt;There is an example in the GMAP documentation. You would use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%annomac; to make the macros ready to use and then call&lt;/P&gt;
&lt;P&gt;%maplabel. to create the annotate data set.&lt;/P&gt;
&lt;P&gt;The syntax for &lt;SPAN class="xis-keyword"&gt;&lt;FONT style="background-color: rgb(252, 222, 192);"&gt;%MAPLABEL&lt;/FONT&gt;&lt;/SPAN&gt; (&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;map-dataset&lt;/SPAN&gt;, &lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;attr-dataset&lt;/SPAN&gt;,&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;output-dataset&lt;/SPAN&gt;,&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;label-var&lt;/SPAN&gt;,&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;id-list&lt;/SPAN&gt;,&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;font=font_name&lt;/SPAN&gt;,&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;color=n&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;size=n&lt;/SPAN&gt;,&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;hsys=n&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would reference the output-dataset created with the macro as an annotate= dataset on either the specific plot type requested (Choro Block Prism Surface) or on the Proc Gmap statement. (You can have two or more annotate sets for some purposes if requesting more than one plot).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 21:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-write-sas-code-to-display-my-data-on-map-in-sas/m-p/548061#M8476</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-02T21:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to write sas code to display my data on map in sas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-write-sas-code-to-display-my-data-on-map-in-sas/m-p/548071#M8477</link>
      <description>&lt;P&gt;You probably want to use the newer SGMAPs if you have the appropriate version and license.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/12/14/sgmap-now-in-base-sas/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/12/14/sgmap-now-in-base-sas/&lt;/A&gt;&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/16488"&gt;@juliajulia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an analysis result that I want to display it on the map. The result include 9 US regions and their VL suppression rate categorized by&amp;nbsp;two groups: durable suppressed and never suppressed. the dataset looks like this:&lt;/P&gt;
&lt;P&gt;US Region&amp;nbsp; Durable&amp;nbsp;&amp;nbsp; Never&lt;/P&gt;
&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 84&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 79&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56&lt;/P&gt;
&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;67&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;
&lt;P&gt;........&lt;/P&gt;
&lt;P&gt;I am new to the SAS proc gmap and I am not sure how to write a sas code to display those numbers on the map. I am thinking to either create two maps or one map to display these results.&lt;/P&gt;
&lt;P&gt;anybody can help me. thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 22:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-write-sas-code-to-display-my-data-on-map-in-sas/m-p/548071#M8477</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-02T22:31:48Z</dc:date>
    </item>
  </channel>
</rss>

