<?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: Graphing Counts of Physician Types by Zip Code in a Particular state in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122062#M4716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am actually trying to show the count of physicians, the type does not matter in this instance. This is a map that is not going to be published, but used a visual tool in presentations given. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if anyone can look over my code to see what I am missing or adding that is causing the map to not be developed. I do not have any errors in my log, but no map is produced. Thank you for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 15:37:32 GMT</pubDate>
    <dc:creator>HyunJee</dc:creator>
    <dc:date>2012-05-21T15:37:32Z</dc:date>
    <item>
      <title>Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122057#M4711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to develop a map of the state of Oklahoma zip codes that includes color coding to identify how many physician types are located in particular zip codes. I have attached a sample dataset of count of physician types and the corresponding zip codes for the state of Oklahoma. There are some zip codes that are not in Oklahoma, but I planned to exclude them by only keep zip codes where the state = Oklahoma.- I have been having trouble creating the appropriate files to create the exact map I am needing. The below code is what I have written so far, but I know that it is incorrect. I appreciate any help that can be given. Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=zipdata2;&lt;/P&gt;&lt;P&gt;by zip;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp (keep = zip count x y city state);&lt;/P&gt;&lt;P&gt;merge zipdata2 sashelp.zipcode;&lt;/P&gt;&lt;P&gt;by zip;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp2;&lt;/P&gt;&lt;P&gt;set temp;&lt;/P&gt;&lt;P&gt;if (count ne . and x NE . and y NE .) then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=atan(1)/45 * x *-1; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=atan(1)/45 * y; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end; &lt;/P&gt;&lt;P&gt; /* put out a message for bad/missing zipcodes */ &lt;/P&gt;&lt;P&gt; else if (count ne . and x=.) then do;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "WARNING: Zipcode " zip " wasn't located."; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;set maps.states (where=(40)) temp2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap data=temp2 map=temp2;&lt;/P&gt;&lt;P&gt;id state zip;&lt;/P&gt;&lt;P&gt;choro count /anno=temp2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 13:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122057#M4711</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-05-21T13:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122058#M4712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sashelp.zipcode just has the centroid of the zip codes, not the border/boundary of them.&amp;nbsp; Therefore you cannot use that data as the map=.&amp;nbsp; If you want the zip code boundaries, you'll need to download them and import them into a SAS data set that can be used as a map.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://robslink.com/SAS/democd17/zcta.htm"&gt;http://robslink.com/SAS/democd17/zcta.htm&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robslink.com/SAS/democd17/zcta_info.htm"&gt;http://robslink.com/SAS/democd17/zcta_info.htm&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're going to use the sashelp.zipcodes to annotate points/markers on a map, then you can do that on the SAS county maps, such as ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd36/ski_unblinged.htm"&gt;http://robslink.com/SAS/democd36/ski_unblinged.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd36/ski_unblinged_info.htm"&gt;http://robslink.com/SAS/democd36/ski_unblinged_info.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 14:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122058#M4712</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-05-21T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122059#M4713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert.&lt;/P&gt;&lt;P&gt;I was unable to open the two last links you provided. The window that pops up says they cannot be found. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two links are helpful that you provide. Though I am unsure the code to write to produce the map I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included the new code below I am using. I should state that I have never created maps in SAS before and this is my first time trying this. I am a bit confused on how to create them and appreciate any help that can be given. Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*creating a dataset with the correct zip code variables for merging;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data zipdata2;&lt;/P&gt;&lt;P&gt;set zipdata;&lt;/P&gt;&lt;P&gt;length zcta $5.;&lt;/P&gt;&lt;P&gt;zcta = zip_1;&lt;/P&gt;&lt;P&gt;zip = zip_1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*creating a dataset of the zip code boundaries;&lt;/P&gt;&lt;P&gt;proc mapimport&lt;/P&gt;&lt;P&gt; datafile="./zt40_d00.shp"&lt;/P&gt;&lt;P&gt; out=mymap;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*x/y is really long/lat degrees, so converted them to radians,&lt;/P&gt;&lt;P&gt;so I can gproject them...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mymap; set mymap;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Convert long/lat to radians */&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=atan(1)/45 * x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; y=atan(1)/45 * y;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Assigned unique segment values to avoid stray lines between disjoint&lt;/P&gt;&lt;P&gt;3-digit zcta's;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mymap; set mymap;&lt;/P&gt;&lt;P&gt;segment=(100*ZT40_D00_I)+segment;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Project the map (note the use of 'eastlong'!);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gproject data=mymap out=mymap dupok eastlong project=robinson;&lt;/P&gt;&lt;P&gt; id zcta;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*merging my data with the mymap data;&lt;/P&gt;&lt;P&gt;proc sort data=zipdata2;&lt;/P&gt;&lt;P&gt;by zcta;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=mymap;&lt;/P&gt;&lt;P&gt;by zcta;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data combined;&lt;/P&gt;&lt;P&gt;merge zipdata2( in=a) mymap (in=b);&lt;/P&gt;&lt;P&gt;by zcta;&lt;/P&gt;&lt;P&gt;if a and b;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*combining the mymap and my data with te sashelp.zipcode data;&lt;/P&gt;&lt;P&gt;data sas_zipcode;&lt;/P&gt;&lt;P&gt;set sashelp.zipcode;&lt;/P&gt;&lt;P&gt;where state = 40;&lt;/P&gt;&lt;P&gt;length zcta $5.;&lt;/P&gt;&lt;P&gt;zcta = zip;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data combined2;&lt;/P&gt;&lt;P&gt;merge combined sas_zipcode;&lt;/P&gt;&lt;P&gt;by zip;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mymap2;&lt;/P&gt;&lt;P&gt;merge mymap sas_zipcode;&lt;/P&gt;&lt;P&gt;by zcta;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*creating a graph of the data;&lt;/P&gt;&lt;P&gt;proc gmap data=combined2 map=mymap2;&lt;/P&gt;&lt;P&gt;id state zcta;&lt;/P&gt;&lt;P&gt;choro count;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 15:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122059#M4713</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-05-21T15:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122060#M4714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to show each type of physician in each ZIP you may want to use the physician type as a BY variable producing one map per physician type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done something similar and unless your final map display is going to be huge a statewide map is unlikely to display ZIP code areas within dense population areas such as Oklahoma City very well. I usually end up at a city level for maps displayed on web sites or in publications. It may also be relatively easy to find a city location SHP file in the same projection as other state features and avoid the projection completely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 15:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122060#M4714</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-21T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122061#M4715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link should be fixed now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 15:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122061#M4715</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-05-21T15:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122062#M4716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am actually trying to show the count of physicians, the type does not matter in this instance. This is a map that is not going to be published, but used a visual tool in presentations given. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if anyone can look over my code to see what I am missing or adding that is causing the map to not be developed. I do not have any errors in my log, but no map is produced. Thank you for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 15:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122062#M4716</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-05-21T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122063#M4717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need to sort your map and then merge it with your zip code data.&lt;/P&gt;&lt;P&gt;A map is a map, and data is data ... you do not need to merge them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are probably at the stage where Mike Zdeb's book would be very useful to you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.amazon.com/Maps-Made-Using-Carpenters-Software/dp/1590470931"&gt;http://www.amazon.com/Maps-Made-Using-Carpenters-Software/dp/1590470931&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 15:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122063#M4717</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-05-21T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122064#M4718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... here's some SAS code that uses an OK ZCTA shapefile and your data to produce some maps.&amp;nbsp; One is just a ZCTA outline map, the other uses your MD data.&amp;nbsp; If you've never done a map and you'd like to read a bit (for free, though that's my book that Robert cites), try this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.albany.edu/~msz03/map_basics.zip" target="_blank"&gt;The Basics of Map Creation with SAS/GRAPH &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's also a paper about importing shapefiles (though it focuses on census tracts and county subdivisions) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.albany.edu/~msz03/shapefiles_to_maps.zip"&gt;From Shapefiles to Maps Via PROC MAPIMPORT and PROC GMAP &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS code (maps attached) ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* shapefile from ... &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&lt;A href="http://legacy.jefferson.kctcs.edu/techcenter/GIS%20data/Country/USA/State/OK/Polygons/"&gt;http://legacy.jefferson.kctcs.edu/techcenter/GIS%20data/Country/USA/State/OK/Polygons/&lt;/A&gt; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc mapimport datafile="z:\zt40_d00.shp" out=mymap;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;select zcta zt40_d00_i;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;rename zcta=zip;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* segment fix;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data mymap;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;set mymap;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;segment=(100*zt40_d00_i)+segment;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;drop zt40_d00_i;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* mymap data set contains unprojected X/Y coordinates ... project them;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc gproject data=mymap out=zproj degrees eastlong project=robinson;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;id zip;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* graphics options;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;goptions reset=all ftext='calibri' htext=2 gunit=pct;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* create an outline map of OK ZCTAS;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc gmap data=zproj map=zproj;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;id zip ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;choro segment / nolegend levels=1 coutline=white;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* change ZIP in your data to a character variable (to match imported data);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data okmds;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;set z.zipdata2 (rename=(zip=temp));&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;zip = put(temp,z5.);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;keep zip count;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* title plus white space on sides of map;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title1 h=4 'OKLAHOMA ... PHYSICIANS BY ZIP' ls=2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 a=90 ls=2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title3 a=-90 ls=2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* some colors from ... &lt;A href="http://colorbrewer2.org/"&gt;http://colorbrewer2.org/&lt;/A&gt; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;pattern1 v=ms c=cxD0D1E6; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;pattern2 v=ms c=cx74A9CF; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;pattern3 v=ms c=cx3690C0; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;pattern4 v=ms c=cx0570B0; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* relocate LEGEND ... into Texas panhandle;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;legend1 mode=share origin=(10,35)pct &lt;/STRONG&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;across=1 label=(position=top 'PHYSICIANS') shape=bar(3,4)pct;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* some ranges for MD counts;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc format;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;value count&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;1 = '1'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;2-3 = '2-3'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;4-5 = '4-5'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;6-high = '6+'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;* map your data;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc gmap data=okmds map=zproj all;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;id zip ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;choro count / discrete coutline=blue legend=legend1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;format count count.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10808i3F0FB2A42EC0E908/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="ok_zip_outline.png" title="ok_zip_outline.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10809i3963835910ABB35E/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="ok_zip_md_counts.png" title="ok_zip_md_counts.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 16:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122064#M4718</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-05-21T16:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122065#M4719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... one more thing, if you'd like to add some city locations to orient folk using the map ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;* add three cities ... use PROC GEOCODE to find lat/long;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data okcities;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;retain state 'OK';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;input city &amp;amp; $20. @@;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Oklahoma City&amp;nbsp;&amp;nbsp;&amp;nbsp; Tulsa&amp;nbsp;&amp;nbsp;&amp;nbsp; Norman&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc geocode data=okcities out=okcities_xy (keep=city x y);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;* combine unprojected map and city locations;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data map_plus;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;set mymap okcities_xy;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;* project combined data set;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc gproject data=map_plus out=map_plus degrees eastlong asis project=robinson;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;id zip;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;* separate project map from projected city locations;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;map (where=(city is missing))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;cities (where=(city is not missing) keep=city x y)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;set map_plus;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;* create an annotate data set to add cities to map (transparent color ... blue, might not be best choice);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data cities;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;retain xsys ysys '2' hsys '3' function 'label' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;color 'a0000ffaa'&amp;nbsp; style '"calibri/bo"' size 3 when 'a';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;set cities ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;text = upcase(city);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;goptions dev=png gsfname=gout xpixels=1024 ypixels=768;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;filename gout 'z:\ok.png' ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;* map your data with cities;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc gmap data=okmds map=map all anno=cities;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;id zip;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;choro count / discrete coutline=blue legend=legend1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;format count count.;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11168i1BB06027F80FF30B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="ok.png" title="ok.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 17:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122065#M4719</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-05-21T17:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing Counts of Physician Types by Zip Code in a Particular state</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122066#M4720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey mike, thanks a lot for the post and the info!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 19:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-Counts-of-Physician-Types-by-Zip-Code-in-a-Particular/m-p/122066#M4720</guid>
      <dc:creator>poaform</dc:creator>
      <dc:date>2012-05-21T19:41:34Z</dc:date>
    </item>
  </channel>
</rss>

