<?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 stop the display of results for variables by ascending order in PROC SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491737#M16868</link>
    <description>&lt;P&gt;Use GROUPORDER=DATA on the VBAR statement to keep the group order.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2018 20:15:40 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-08-31T20:15:40Z</dc:date>
    <item>
      <title>How to stop the display of results for variables by ascending order in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491668#M16864</link>
      <description>&lt;P&gt;Suppose i have the following sample dataset:&lt;/P&gt;&lt;P&gt;Group&amp;nbsp;&amp;nbsp; Variable&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using PROC SGPANEL to produce a graph for the above data:&lt;/P&gt;&lt;PRE&gt;proc sgpanel data = data1 noautolegend;
panelby Group / onepanel layout= columnlattice novarname border;
vbar Variable/ group= Group groupdisplay=cluster groupOrder = data response= Value ;
rowaxis label = 'Change(%)';
colaxis label = ' ';
run;&lt;/PRE&gt;&lt;P&gt;In the result, for each group, the default arrangement of 'Variable' is in ascending order i.e. no matter how it is in the data. In the graph, 'Variable' is shown with x,y followed by z. But i need it exactly the way mentioned in the above example i.e. z, followed by x, and then followed by y.&lt;/P&gt;&lt;P&gt;I'm using the latest version of Base SAS 9.4&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 15:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491668#M16864</guid>
      <dc:creator>sayandesarkar</dc:creator>
      <dc:date>2018-08-31T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop the display of results for variables by ascending order in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491684#M16865</link>
      <description>&lt;P&gt;If your data is in the desired order, you can update your rowaxis statement to:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rowaxis label = 'Change(%)' discreteorder=data;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Aug 2018 16:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491684#M16865</guid>
      <dc:creator>hoswee</dc:creator>
      <dc:date>2018-08-31T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop the display of results for variables by ascending order in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491685#M16866</link>
      <description>&lt;P&gt;To control axis appearance look at axis options:&lt;/P&gt;
&lt;P&gt;See if this works for you&lt;/P&gt;
&lt;PRE&gt;colaxis label = ' ' values=( 'z' 'x' 'y');
&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Aug 2018 16:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491685#M16866</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-31T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop the display of results for variables by ascending order in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491690#M16867</link>
      <description>This worked. Now i want to arrange the 'Group' variable by B, followed by A, followed by C. I tried the above statement with 'colaxis'. It didn't work. How do i make this change?</description>
      <pubDate>Fri, 31 Aug 2018 16:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491690#M16867</guid>
      <dc:creator>sayandesarkar</dc:creator>
      <dc:date>2018-08-31T16:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop the display of results for variables by ascending order in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491737#M16868</link>
      <description>&lt;P&gt;Use GROUPORDER=DATA on the VBAR statement to keep the group order.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 20:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-stop-the-display-of-results-for-variables-by-ascending/m-p/491737#M16868</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-08-31T20:15:40Z</dc:date>
    </item>
  </channel>
</rss>

