<?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: how to draw an annotate map using sas gmap graphs to get counts of a variable in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/291186#M10265</link>
    <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2016 08:55:32 GMT</pubDate>
    <dc:creator>sanjay1</dc:creator>
    <dc:date>2016-08-12T08:55:32Z</dc:date>
    <item>
      <title>how to draw an annotate map using sas gmap graphs to get counts of a variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/287505#M10169</link>
      <description>&lt;P&gt;Am trying to draw a map with employee count for each state of usa using sas gmaps procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) The dataset stlabel have stcnt(employee count), and statecode (for each state), and region.&lt;BR /&gt;2) I want to get the employee count for each state to be displayed&lt;BR /&gt;&lt;BR /&gt;data stlabel;&lt;BR /&gt;set mapfips;&lt;BR /&gt;length function $ 8 position $ 1&lt;BR /&gt;text $ 20;&lt;BR /&gt;text=stcnt;&lt;BR /&gt;xsys = '2' ;&lt;BR /&gt;ysys= '2' ;&lt;BR /&gt;hsys = '3' ;&lt;BR /&gt;position = '5' ;&lt;BR /&gt;function= 'label';&lt;BR /&gt;color= 'black';&lt;BR /&gt;when ='after';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc gmap data=mapfips map=maps.us;&lt;BR /&gt;id STATECODE;&lt;BR /&gt;choro region/ annotate=stlabel;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 15:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/287505#M10169</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2016-07-27T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw an annotate map using sas gmap graphs to get counts of a variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/287511#M10170</link>
      <description>&lt;P&gt;When you run the code do you get any messages? Any output? Map but not with the annotation?&amp;nbsp; Did you try putting the annotate clause on the Proc GMAP statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the xlsx file is data please repost as text, preferrably as a datastep if you want us to test code. If we have to read data then we may not have the same values because of choices made to import Excel files. This link: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&amp;nbsp;" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&amp;nbsp;&lt;/A&gt; will provide information on how to create a datastep from a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 15:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/287511#M10170</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-27T15:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw an annotate map using sas gmap graphs to get counts of a variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/288155#M10186</link>
      <description>&lt;P&gt;MAPS.US is in Projected Radians.&amp;nbsp; You must project your Annotate data and your map data together so it will be in the same projection.&amp;nbsp; But maps.us does not have any unprojected data so you can do that.&amp;nbsp; You must start with something like MAPS.STATES which has unprojected radians.&amp;nbsp; Your annotate data must be in unprojected radians too.&amp;nbsp; (alternately, use MAPSGFK.COUNTIES which has LAT and LONG as Unprojected Degrees).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, convert the annotated data to radians if it is in degrees (unless using MAPSGFK).&lt;/P&gt;
&lt;P&gt;Add an anno_flag=1 variable to the annotate data.&lt;/P&gt;
&lt;P&gt;Combine the map data and the annotate data into the same data set.&lt;/P&gt;
&lt;P&gt;Proc GPROJECT this data set.&lt;/P&gt;
&lt;P&gt;Split the data back into 2 data sets: Map and Annotate using the anno_flag variable.&lt;/P&gt;
&lt;P&gt;GMAP the map and annotate data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 15:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/288155#M10186</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-07-29T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw an annotate map using sas gmap graphs to get counts of a variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/288227#M10192</link>
      <description>&lt;P&gt;Sorry, I meant MAPSGFK.US_STATES as an alternative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 18:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/288227#M10192</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-07-29T18:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to draw an annotate map using sas gmap graphs to get counts of a variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/291186#M10265</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 08:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-draw-an-annotate-map-using-sas-gmap-graphs-to-get-counts/m-p/291186#M10265</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2016-08-12T08:55:32Z</dc:date>
    </item>
  </channel>
</rss>

