<?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: Creating a Map with a Reason Code and City Location in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353909#M12303</link>
    <description>&lt;P&gt;I am trying to understand the connection between the Tableau map and the SAS map. In Tableau you apparently have one value, or summarization per state applied at a single location to set the radius of a dot. In SAS you have, at least in some areas, multiple points with a block for each but I am not sure what the block represents or how it is placed as you aren't showing anything that I recognize that should make multple blocks per state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are attempting to do something closer to the Tableau appearance then you likely want something with most of the information displayed with an annotate data set.&lt;/P&gt;
&lt;P&gt;You may want to visit this page and see if something is close to what you want.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/sassamples/graphgallery/PROC_GMAP.html" target="_blank"&gt;http://support.sas.com/sassamples/graphgallery/PROC_GMAP.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 21:37:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-04-26T21:37:06Z</dc:date>
    <item>
      <title>Creating a Map with a Reason Code and City Location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353873#M12301</link>
      <description>&lt;P&gt;I have a dataset like this (truncated for this post):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input State $2. Setout_Code $3. Count_of_Code 3.;
datalines;
AR AB 14
AR BR 1
AR BT 10
AR DG 1
AR HB 1
AR KR 4
AR TB 1
AR TL 3
AR TR 1
AZ AB 6
AZ BR 2
AZ BT 19
AZ HB 1
AZ KR 2
AZ TL 5
AZ WP 5
CA AB 5
CA BG 2
CA BR 2
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a separate program, Tableau, I've been able to project these values onto a map like such:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="setout map.png" alt="setout map.png" src="https://communities.sas.com/t5/image/serverpage/image-id/8565i825E5320AB0B2199/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to recreate this map in a smiliar manner in SAS, but cannot figure out how.&amp;nbsp; This is as close as I'm getting:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="sasmap.JPG" alt="sasmap.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/8566iF8D0D5C9E88E19E6/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code i'm using to generate this in SAS is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gmap data=work.want map=maps.us (where=(statecode not in ('PR' 'AK' 'HI')));
id STATE Setout_Code;
area STATE / nolegend;
block Setout_Code;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help or point me in the direction of a method/options/different proc that will get me closer to generating a map like Tableau?&amp;nbsp; In the future, there might be need for also mapping out cities where these 'Setout_Code' counts are occurring, and I would potentially like to map those out on the same sort of US map of states (but specific to the city with each setout code colored separately).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, note that for this post's sake the data has been truncated, so both maps are showing the additional data I have in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 20:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353873#M12301</guid>
      <dc:creator>laneylaners</dc:creator>
      <dc:date>2017-04-26T20:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Map with a Reason Code and City Location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353896#M12302</link>
      <description>&lt;P&gt;Note that I've moved this post to the graphics forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a recent blog post to get you started, but there are also more shown lately on the blogs so I'd read through there first as a starting point &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sastraining/2017/03/21/create-pretty-map-proc-sgplot/" target="_blank"&gt;http://blogs.sas.com/content/sastraining/2017/03/21/create-pretty-map-proc-sgplot/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 21:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353896#M12302</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-26T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Map with a Reason Code and City Location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353909#M12303</link>
      <description>&lt;P&gt;I am trying to understand the connection between the Tableau map and the SAS map. In Tableau you apparently have one value, or summarization per state applied at a single location to set the radius of a dot. In SAS you have, at least in some areas, multiple points with a block for each but I am not sure what the block represents or how it is placed as you aren't showing anything that I recognize that should make multple blocks per state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are attempting to do something closer to the Tableau appearance then you likely want something with most of the information displayed with an annotate data set.&lt;/P&gt;
&lt;P&gt;You may want to visit this page and see if something is close to what you want.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/sassamples/graphgallery/PROC_GMAP.html" target="_blank"&gt;http://support.sas.com/sassamples/graphgallery/PROC_GMAP.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 21:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353909#M12303</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-26T21:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Map with a Reason Code and City Location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353911#M12304</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The tableau output is just an example of what I'm hoping to achieve in SAS.&amp;nbsp; Of all the SAS forums/pages/blogs/info (like the one you linked to) I cannot for the life of me figure out how to try to apply my SAS dataset and code, and use 'anno' or 'annotate' to overlay data onto a map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a good starting point for anno/annotate and how that works with graphs?&amp;nbsp; I was turning myself in circles when i tried searching for that from a 'beginners' POV.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 21:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353911#M12304</guid>
      <dc:creator>laneylaners</dc:creator>
      <dc:date>2017-04-26T21:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Map with a Reason Code and City Location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353928#M12307</link>
      <description>&lt;P&gt;The key bits with an annotate approach is 1) getting your locations specified IN THE SAME coordinate system as the map data set you will use and then creating a data set that attaches text, color, symbol what have you at those locations. Then setting the appropriate base map options and display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The classic starter example is at: &lt;A href="https://v8doc.sas.com/sashtml/gref/z0n01-ex.htm" target="_blank"&gt;https://v8doc.sas.com/sashtml/gref/z0n01-ex.htm&lt;/A&gt; which places a symbol at the location of three cities on a US map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that there are a number of macro statements, look up %annomac in your online help, to make repetive statments, like setting color and size based on values in your data set, easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be worth wondering around on &lt;A href="http://robslink.com/SAS/" target="_blank"&gt;http://robslink.com/SAS/&lt;/A&gt; as there are many examples. The main pages show a number of graphs and clicking on title or picture takes you to a choice of code or the result. These are a good place to look for similar graphs as he provides data and some documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you are attempting to do drilldowns that is possible but adds a lot of complexity.&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>Wed, 26 Apr 2017 22:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353928#M12307</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-26T22:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Map with a Reason Code and City Location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353931#M12309</link>
      <description>&lt;P&gt;Just an FYI - the equivalent software to Tableau is not SAS Base but SAS Visual Analytics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Base will allow you to get close but it's definitely a lot more work than Tableau.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 22:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/353931#M12309</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-26T22:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Map with a Reason Code and City Location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/359038#M12499</link>
      <description>&lt;P&gt;This chapter might help you ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/book2/Chapter_07_Annotating_on_Maps.pdf" target="_blank"&gt;http://robslink.com/SAS/book2/Chapter_07_Annotating_on_Maps.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 14:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-Map-with-a-Reason-Code-and-City-Location/m-p/359038#M12499</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2017-05-16T14:16:47Z</dc:date>
    </item>
  </channel>
</rss>

