<?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: annotate country names on world map in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/re-annotate-country-names-on-world-map/m-p/498413#M17006</link>
    <description>&lt;P&gt;Hi....I would like to annotate the names of a country and population size from a list so that the only the names on the country along with their population size appears on the world map. I have found a lot of information that annotates cities but I can't find much on countries. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgmap mapdata=maps.world maprespdata=sashelp.demographics; 
choromap id / mapid=id id=id; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Sep 2018 14:41:31 GMT</pubDate>
    <dc:creator>twildone</dc:creator>
    <dc:date>2018-09-24T14:41:31Z</dc:date>
    <item>
      <title>re: annotate country names on world map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/re-annotate-country-names-on-world-map/m-p/498413#M17006</link>
      <description>&lt;P&gt;Hi....I would like to annotate the names of a country and population size from a list so that the only the names on the country along with their population size appears on the world map. I have found a lot of information that annotates cities but I can't find much on countries. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgmap mapdata=maps.world maprespdata=sashelp.demographics; 
choromap id / mapid=id id=id; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/re-annotate-country-names-on-world-map/m-p/498413#M17006</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2018-09-24T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: re: annotate country names on world map</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/re-annotate-country-names-on-world-map/m-p/498588#M17012</link>
      <description>&lt;P&gt;You would need to&amp;nbsp;provide an appropriately subsetted dataset to the PLOTDATA = option of the PROC SGMAP statement.&amp;nbsp;&lt;SPAN&gt;PLOTDATA supplies the TEXT statement&amp;nbsp;of SGMAP procedure, that determines what is written on the map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example, this code would display country&amp;nbsp;names from the variable &lt;EM&gt;idname&lt;/EM&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class=" language-sas"&gt;&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;SQL&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   CREATE &lt;SPAN class="token statement"&gt;TABLE&lt;/SPAN&gt; countrynames AS
	&lt;SPAN class="token statement"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;id&lt;/SPAN&gt; AS &lt;SPAN class="token keyword"&gt;id&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;mean&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; AS xc&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;mean&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;y&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; AS yc&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;min&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;idname&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; AS idname
	&lt;SPAN class="token keyword"&gt;FROM&lt;/SPAN&gt; maps&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;world
     &lt;SPAN class="token comment"&gt;/* You can also choose specific countries, e.g. WHERE idname IN ('Russia','Poland','Ukraine') */&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;BY&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;id&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;QUIT&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; SGMAP MAPDATA &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; maps.world	        &lt;SPAN class="token comment"&gt;/* Map boundaries */&lt;/SPAN&gt;
	   MAPRESTDATA &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; countrynames 	&lt;SPAN class="token comment"&gt;/* For colours */&lt;/SPAN&gt;
	   PLOTDATA &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; countrynames 	&lt;SPAN class="token comment"&gt;/* For names */&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    CHOROMAP idname &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; MAPID&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;id&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;ID&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;id&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    TEXT X&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; xc Y&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; yc TEXT&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; idname &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; TEXTATTRS&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;SIZE&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;3&lt;/SPAN&gt;pt COLOR&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; steel&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;RUN&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;U&gt;Reference&lt;/U&gt;:&amp;nbsp;&amp;nbsp;&lt;A href="https://amadeus.co.uk/sas-tips/maps-in-ods-graphics-proc-sgmap/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://amadeus.co.uk/sas-tips/maps-in-ods-graphics-proc-sgmap/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 14:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/re-annotate-country-names-on-world-map/m-p/498588#M17012</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-09-25T14:14:48Z</dc:date>
    </item>
  </channel>
</rss>

