<?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 create prism maps controlling height and color in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-prism-maps-controlling-height-and-color/m-p/116213#M4402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="77982" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: I had cross-posted this to SAS-L and Joe Matise and Nat Wooding got me sufficiently close to what I am trying to do.&amp;nbsp; It doesn't meet my specs 100%, but definitely comes close enough for my current need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To keep the height standard across graphs I created a dummy fips code and assigned the maximum value to it.&lt;/P&gt;&lt;P&gt;I set the colors with pattern statements and then used area=state to assign the patterns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I included a relzero option to have states with no data show zero frequencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data usmap;&lt;BR /&gt;&amp;nbsp; set maps.us end=eof;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; if eof then do;&lt;BR /&gt;&amp;nbsp; state=99;&lt;BR /&gt;&amp;nbsp; statecode="un";&lt;BR /&gt;&amp;nbsp; segment=1;&lt;BR /&gt;&amp;nbsp; x=.0950000000;&lt;BR /&gt;&amp;nbsp; y=.1600000000;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; segment=2;&lt;BR /&gt;&amp;nbsp; x=.0949999999;&lt;BR /&gt;&amp;nbsp; y=.1599999999;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pattern1 c=cxb70000;&lt;BR /&gt;pattern2 c=cxc71585;&lt;BR /&gt;pattern3 c=cxeeff3a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap map=usmap data=theftsovertime (where=(TheftDate eq '01FEB2010'd));&lt;BR /&gt;&amp;nbsp; id state;&lt;BR /&gt;&amp;nbsp; prism thefts / coutline=black levels=all nolegend area=state relzero;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2013 13:20:44 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-06-24T13:20:44Z</dc:date>
    <item>
      <title>How to create prism maps controlling height and color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-prism-maps-controlling-height-and-color/m-p/116211#M4400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given the following data, how would one create daily prism maps that show the cummulative number of thefts that have occurred in each state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 c=cxb70000;&lt;/P&gt;&lt;P&gt;pattern2 c=cxc71585;&lt;/P&gt;&lt;P&gt;pattern3 c=cxeeff3a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data thefts;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat theftdate date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input theftdate state&amp;nbsp; thefts;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;20jun2013 17 50&lt;/P&gt;&lt;P&gt;20jun2013 18&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;20jun2013 19 10&lt;/P&gt;&lt;P&gt;21jun2013 17 60&lt;/P&gt;&lt;P&gt;21jun2013 18 10&lt;/P&gt;&lt;P&gt;21jun2013 19 70&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The states are fips codes, the thefts variable already represents the cummulative number of thefts, and the basic set of maps that I want to create are similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap map=maps.us data=thefts (where=(TheftDate eq '20jun2013'd));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; id state;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; prism thefts / coutline=black discrete nolegend;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But .. I want to control the color of each state and I want each state's height to be the thefts' number on a scale from 0 to 5000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can that be done and, if so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jun 2013 14:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-prism-maps-controlling-height-and-color/m-p/116211#M4400</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-06-22T14:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create prism maps controlling height and color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-prism-maps-controlling-height-and-color/m-p/116212#M4401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can control the color of the land, and the height (and color) of the bars separately with a block map, but I don't think that's possible with a prism map (in a prism map, the height &amp;amp; color of the land would both be tied to 1 variable, I believe).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 12:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-prism-maps-controlling-height-and-color/m-p/116212#M4401</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-06-24T12:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create prism maps controlling height and color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-prism-maps-controlling-height-and-color/m-p/116213#M4402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="77982" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: I had cross-posted this to SAS-L and Joe Matise and Nat Wooding got me sufficiently close to what I am trying to do.&amp;nbsp; It doesn't meet my specs 100%, but definitely comes close enough for my current need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To keep the height standard across graphs I created a dummy fips code and assigned the maximum value to it.&lt;/P&gt;&lt;P&gt;I set the colors with pattern statements and then used area=state to assign the patterns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I included a relzero option to have states with no data show zero frequencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data usmap;&lt;BR /&gt;&amp;nbsp; set maps.us end=eof;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; if eof then do;&lt;BR /&gt;&amp;nbsp; state=99;&lt;BR /&gt;&amp;nbsp; statecode="un";&lt;BR /&gt;&amp;nbsp; segment=1;&lt;BR /&gt;&amp;nbsp; x=.0950000000;&lt;BR /&gt;&amp;nbsp; y=.1600000000;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; segment=2;&lt;BR /&gt;&amp;nbsp; x=.0949999999;&lt;BR /&gt;&amp;nbsp; y=.1599999999;&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pattern1 c=cxb70000;&lt;BR /&gt;pattern2 c=cxc71585;&lt;BR /&gt;pattern3 c=cxeeff3a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap map=usmap data=theftsovertime (where=(TheftDate eq '01FEB2010'd));&lt;BR /&gt;&amp;nbsp; id state;&lt;BR /&gt;&amp;nbsp; prism thefts / coutline=black levels=all nolegend area=state relzero;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 13:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-prism-maps-controlling-height-and-color/m-p/116213#M4402</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-06-24T13:20:44Z</dc:date>
    </item>
  </channel>
</rss>

