<?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 Creating a dot map for 3 states in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/429804#M14850</link>
    <description>&lt;P&gt;I have the addresses (address line, city state, zip) for&amp;nbsp;individuals in 3 states (DC,MD,VA) and trying to create a map that will show the 3 states together and plot each&amp;nbsp;individual so that I can see where most of them are coming from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some code someone can share with me or point me to the right resources to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 21:56:57 GMT</pubDate>
    <dc:creator>einstein</dc:creator>
    <dc:date>2018-01-22T21:56:57Z</dc:date>
    <item>
      <title>Creating a dot map for 3 states</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/429804#M14850</link>
      <description>&lt;P&gt;I have the addresses (address line, city state, zip) for&amp;nbsp;individuals in 3 states (DC,MD,VA) and trying to create a map that will show the 3 states together and plot each&amp;nbsp;individual so that I can see where most of them are coming from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some code someone can share with me or point me to the right resources to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/429804#M14850</guid>
      <dc:creator>einstein</dc:creator>
      <dc:date>2018-01-22T21:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a dot map for 3 states</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/431047#M14876</link>
      <description>&lt;P&gt;Please see the below&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings16/10404-2016.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings16/10404-2016.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 19:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/431047#M14876</guid>
      <dc:creator>againreddy</dc:creator>
      <dc:date>2018-01-25T19:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a dot map for 3 states</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/431532#M14891</link>
      <description>&lt;P&gt;Post some sample data to get a code answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, see this&lt;/P&gt;
&lt;P&gt;&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;</description>
      <pubDate>Sat, 27 Jan 2018 14:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/431532#M14891</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-27T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a dot map for 3 states</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/431766#M14894</link>
      <description>&lt;P&gt;Here's one way to do it, using Proc Gmap and annotate ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data;&lt;BR /&gt;input statecode $ 1-2 value;&lt;BR /&gt;state=stfips(statecode);&lt;BR /&gt;datalines;&lt;BR /&gt;NC 491&lt;BR /&gt;SC 352&lt;BR /&gt;VA 108&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data my_map; set maps.us (where=(statecode in ('NC' 'SC' 'VA')));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sql noprint;&lt;BR /&gt;create table anno_dots as&lt;BR /&gt;select unique my_data.*, uscenter.x, uscenter.y&lt;BR /&gt;from my_data left join maps.uscenter&lt;BR /&gt;on my_data.state=uscenter.state;&lt;BR /&gt;quit; run;&lt;/P&gt;
&lt;P&gt;%let max_val=500; /* maximum size of data value to scale to */&lt;BR /&gt;%let max_area=40; /* size of the maximum dot you want in the map */&lt;BR /&gt;data anno_dots; set anno_dots;&lt;BR /&gt;length function $8 color $20;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;function='pie'; rotate=360;&lt;BR /&gt;size=sqrt((value/&amp;amp;max_val)*&amp;amp;max_area/3.14);&lt;BR /&gt;color='dodgerblue'; style='psolid'; output;&lt;BR /&gt;color='gray33'; style='pempty'; output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;pattern1 v=s color=grayf5;&lt;/P&gt;
&lt;P&gt;proc gmap data=my_map map=my_map anno=anno_dots;&lt;BR /&gt;id statecode;&lt;BR /&gt;choro segment / levels=1 nolegend coutline=gray55;&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="dot_map.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18166i26D10741AD9EFFA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="dot_map.png" alt="dot_map.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 13:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-a-dot-map-for-3-states/m-p/431766#M14894</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2018-01-29T13:04:01Z</dc:date>
    </item>
  </channel>
</rss>

