<?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: Format Sgpanel Legend in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257106#M9319</link>
    <description>&lt;P&gt;Googling syntax for group order the option does not come up with intelsense in 9.4.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2016 19:18:56 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2016-03-16T19:18:56Z</dc:date>
    <item>
      <title>Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257040#M9306</link>
      <description>&lt;P&gt;How can I format a sgpanel legend?&amp;nbsp; I’m trying to order the values in the legend.&amp;nbsp; The format tricks that I use with other graphics does not seem to be working.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257040#M9306</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T15:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257041#M9307</link>
      <description>&lt;P&gt;normally I use stuff like:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/SGPLOT-legend-order/m-p/233202#M8455" target="_blank"&gt;https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/SGPLOT-legend-order/m-p/233202#M8455&lt;/A&gt; but this doesn't appear to work with sgpannel.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257041#M9307</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T15:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257043#M9308</link>
      <description>&lt;P&gt;Do you mean "apply a format" or do you mean "position a legend" or do you mean "specify the order of a legend"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hard to know what "tricks" you've tried, so please supply data and example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2016/02/17/include-and-order-categories-in-legends.html" target="_self"&gt;a trick to include (and order) categories in SGPLOT legends&lt;/A&gt;.&amp;nbsp; There are many other tricks, such as &lt;A href="http://blogs.sas.com/content/iml/2012/10/17/specify-the-colors-of-groups-in-sas-statistical-graphics.html" target="_self"&gt;http://blogs.sas.com/content/iml/2012/10/17/specify-the-colors-of-groups-in-sas-statistical-graphics.html&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257043#M9308</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-16T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257044#M9309</link>
      <description>&lt;P&gt;Hi, can you use the SORTORDER=ASCENDING option in keylegend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought the formats should work anyway? Another approach is to add a 1, 2 or 3 in front of your legend label.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257044#M9309</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-03-16T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257045#M9310</link>
      <description>&lt;P&gt;What I did for sgplot is I created my data as numeric and made formats to order them.&amp;nbsp; Then when they are formatted they appear in custom ordering.&amp;nbsp; I need more control over the ordering than descending or ascending.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257045#M9310</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T15:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257046#M9311</link>
      <description>&lt;P&gt;I am curious, why would not this work now? What results for the legend are you getting in SGPANEL?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257046#M9311</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-03-16T15:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257048#M9312</link>
      <description>&lt;P&gt;Maybe there is missing data? I think sorting the dataset by the group variable might help too. There are some tricks though, which Rick has linked too.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257048#M9312</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-03-16T15:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257049#M9313</link>
      <description>&lt;P&gt;From what you've said, I suggest the &lt;A href="http://blogs.sas.com/content/iml/2016/02/17/include-and-order-categories-in-legends.html" target="_self"&gt;"fake data trick" &lt;/A&gt;and using GROUPORDER=DATA&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257049#M9313</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-16T15:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257062#M9315</link>
      <description>&lt;P&gt;I have a syntax issue apparently sgpanel works the same for ordering as sgplot.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257062#M9315</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T16:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257099#M9316</link>
      <description>&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;format&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value Rankingc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt;='Over 4.0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;2&lt;/STRONG&gt;='3.51-4.0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;3&lt;/STRONG&gt;='3.01-3.5'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;4&lt;/STRONG&gt;='2.51-3.0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;5&lt;/STRONG&gt;='2.01-2.5'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;6&lt;/STRONG&gt;='0-2.0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;7&lt;/STRONG&gt;='Unknown'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;97&lt;/STRONG&gt;=' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;98&lt;/STRONG&gt;='Subtotal'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;99&lt;/STRONG&gt;='Total'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;100&lt;/STRONG&gt;='growthDeclineText'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;101&lt;/STRONG&gt;='perGrowthDeclineText';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgpanel&lt;/STRONG&gt; data=enrollment;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; panelby residency_desc gender/ layout=lattice uniscale=column&amp;nbsp; novarname columns=&lt;STRONG&gt;2&lt;/STRONG&gt; onepanel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar four_digit_year / response=enrolled nostatlabel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group = hs_gpa_range;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowaxis display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colaxis display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keylegend / title="titletest";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format hs_gpa_range Rankingc.;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with one dataset high school gpa is ordered correctly&lt;/P&gt;&lt;P&gt;with another dataset high school gpa is ordered&lt;/P&gt;&lt;P&gt;'Over 4.0'&lt;/P&gt;&lt;P&gt;'3.51-4.0'&lt;/P&gt;&lt;P&gt;'3.01-3.5'&lt;/P&gt;&lt;P&gt;'2.51-3.0'&lt;/P&gt;&lt;P&gt;'2.01-2.5'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Unknown'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;'0-2.0'&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 18:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257099#M9316</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T18:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257103#M9317</link>
      <description>&lt;P&gt;In the VBAR statement, &lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#p0dx211cvn45apn1lep1fqi1qw6i.htm" target="_self"&gt;the default group ordering is GROUPORDER=ASCENDING&lt;/A&gt;, which means that the bars should appear according to the unformatted values of the HS_GPA_RANGE variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The behavior you describe shouldn't occur if you are using GROUPORDER=ASCENDING, but it could happen for different data sets if you are using GROUPORDER=DATA.&amp;nbsp; Very strange. Double check the SAS Log to validate the options that you are using. Maybe explicitly set the GROUPORDER= option?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 19:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257103#M9317</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-16T19:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257105#M9318</link>
      <description>&lt;P&gt;This bug also affects proc report based on the dataset.&amp;nbsp; Oddly some sections of proc report are ordered correctly and others are not in the same report.&amp;nbsp; This occurs when using three columns on the left in proc report.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 19:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257105#M9318</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T19:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257106#M9319</link>
      <description>&lt;P&gt;Googling syntax for group order the option does not come up with intelsense in 9.4.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 19:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257106#M9319</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T19:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257108#M9320</link>
      <description>&lt;P&gt;Here is some simulated data.&amp;nbsp; The SGPANEL procedure works properly on this data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data enrollment;
do residency_desc = 0 to 1;
   do gender = 0 to 1;
      do i = 12 to 16;
         four_digit_year = 2000 + i;
         do hs_gpa_range=1 to 7;
            enrolled = int(1000*rand("Uniform"));
            output;
         end;
      end;
   end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Mar 2016 19:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257108#M9320</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-16T19:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Format Sgpanel Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257109#M9321</link>
      <description>&lt;P&gt;With grouporder sgpanel works.&amp;nbsp; Looking at the same bug in proc report, going to see if it allows sortorder too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sortorder orders by the post formated values.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 19:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Format-Sgpanel-Legend/m-p/257109#M9321</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-16T19:33:37Z</dc:date>
    </item>
  </channel>
</rss>

