<?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: Make A Quicker Legend in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100219#M3732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... I'm never quite sure what I'll get with MIDPOINTS, that said ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using V9.3 and you can add the RANGE option to show the actual low-high values (results of using MIDPOINTS) in the legend, otherwise you get the midpoints&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the data set and graphics options from my previous post ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;title h=3 'LEGEND WITH RANGES (BASED ON MIDPOINTS 2.5e5 1e6 2.75e6 4e6&amp;nbsp; 8e6)' ls=2;&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 gmap map=maps.us data=uspop;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;id state;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;choro pop / midpoints=(2.5e5 1e6 2.75e6 4e6&amp;nbsp; 8e6) range coutline=grayaa;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;format pop comma10.;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;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/11461iDCAD66AC6BB0D283/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="five_midpoints.png" title="five_midpoints.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2012 22:50:24 GMT</pubDate>
    <dc:creator>MikeZdeb</dc:creator>
    <dc:date>2012-05-01T22:50:24Z</dc:date>
    <item>
      <title>Make A Quicker Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100216#M3729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I don't know if this is possible but I want to make my legend break the data into five sections and create the legend instead of me manually going in and looking at the data. Any insite into how to accomplish this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of the gmap I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*-------------------------------------------------------------------------*/&lt;/P&gt;&lt;P&gt;goptions reset=all dev=pdf ftext="calibri" gunit=pct cback=white;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 v=ms c=cxe4e9fc;&lt;/P&gt;&lt;P&gt;pattern2 v=ms c=cx7793f1;&lt;/P&gt;&lt;P&gt;pattern3 v=ms c=cx4068ec;&lt;/P&gt;&lt;P&gt;pattern4 v=ms c=cx1133a3;&lt;/P&gt;&lt;P&gt;pattern5 v=ms c=cx0b226d;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* legend;&lt;/P&gt;&lt;P&gt;legend1 across=1 origin=(75,10)pct mode=share shape=bar(2,2)pct label=(h=14pt position=top "People Count") value=(h=14pt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value COUNT&lt;/P&gt;&lt;P&gt;1 - 5 = '1 - 5'&lt;/P&gt;&lt;P&gt;6 - 10 = '6 - 10'&lt;/P&gt;&lt;P&gt;11 - 25 = '11 - 25'&lt;/P&gt;&lt;P&gt;26 - 100 ='26 - 100'&lt;/P&gt;&lt;P&gt;101 - 1100 ='101 - 1,100';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap&lt;/P&gt;&lt;P&gt;data=M2&lt;/P&gt;&lt;P&gt;map=PAzipmap all;&lt;/P&gt;&lt;P&gt;id ZCTA;&lt;/P&gt;&lt;P&gt;choro People_Count / discrete legend=LEGEND1 annotate=P;&lt;/P&gt;&lt;P&gt;format People_Count 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>Tue, 01 May 2012 19:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100216#M3729</guid>
      <dc:creator>AAWTomHanks</dc:creator>
      <dc:date>2012-05-01T19:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Make A Quicker Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100217#M3730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... have you tried ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13px; background-color: #ffffff; font-family: 'courier new', courier;"&gt;choro People_Count / levels=5 annotate=P;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG style="font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;for example ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'courier new', courier;"&gt;* not a total state population ... just add city populations within states;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;proc summary data=maps.uscity nway;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;var pop;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;class state;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;output out=uspop (drop=_:) sum=;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&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;goptions reset=all ftext='calibri' htext=1.75 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;pattern1 v=ms c=cxe4e9fc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;pattern2 v=ms c=cx7793f1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;pattern3 v=ms c=cx4068ec;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;pattern4 v=ms c=cx1133a3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;pattern5 v=ms c=cx0b226d;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;proc gmap map=maps.us data=uspop;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;id state;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;choro pop / levels=5 coutline=grayaa;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;format pop comma10.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&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/10723iE09F1D24C985B336/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="five_levels.png" title="five_levels.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 19:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100217#M3730</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-05-01T19:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make A Quicker Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100218#M3731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option instead of levels is to use midpoints which will let you have a little control of the resulting group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your example use the midpoint of the intervals for your format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;choro&amp;nbsp;&amp;nbsp; / midpoints=( 2.5 7.5 18 63 600.5)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 22:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100218#M3731</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-01T22:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Make A Quicker Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100219#M3732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... I'm never quite sure what I'll get with MIDPOINTS, that said ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using V9.3 and you can add the RANGE option to show the actual low-high values (results of using MIDPOINTS) in the legend, otherwise you get the midpoints&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the data set and graphics options from my previous post ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;title h=3 'LEGEND WITH RANGES (BASED ON MIDPOINTS 2.5e5 1e6 2.75e6 4e6&amp;nbsp; 8e6)' ls=2;&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 gmap map=maps.us data=uspop;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;id state;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;choro pop / midpoints=(2.5e5 1e6 2.75e6 4e6&amp;nbsp; 8e6) range coutline=grayaa;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;format pop comma10.;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;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/11461iDCAD66AC6BB0D283/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="five_midpoints.png" title="five_midpoints.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 22:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Make-A-Quicker-Legend/m-p/100219#M3732</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-05-01T22:50:24Z</dc:date>
    </item>
  </channel>
</rss>

