<?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: Grouporder doesn't work in proc sgpanel clustered bar chart graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Grouporder-doesn-t-work-in-proc-sgpanel-clustered-bar-chart/m-p/632247#M19620</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/316500"&gt;@mahendraksas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this adaptation meet your expectations?&lt;/P&gt;
&lt;P&gt;Could you please clarify how the graphic would look like?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=mo out=mo2;
	by atptn trtp2 usubjid;
run;

proc sgpanel data=mo2;
	panelby atptn / layout=columnlattice onepanel noborder colheaderpos=bottom 
		novarname;
	vbar trtp2 / response=aval group=usubjid groupdisplay=stack CLUSTERWIDTH=1 
		grouporder=data;
	colaxis display=(nolabel noticks);
	rowaxis label=' ' grid offsetmax=0.025;
	keylegend/ title="";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2020 11:39:07 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-03-15T11:39:07Z</dc:date>
    <item>
      <title>Grouporder doesn't work in proc sgpanel clustered bar chart graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grouporder-doesn-t-work-in-proc-sgpanel-clustered-bar-chart/m-p/632216#M19619</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a clustered bar chart by patient grouped by treatment and then by patients internally at each timepoint. Below is my code. But despite of numerous combinations using grouporder=ascending or data the bars won't stack up by treatment (trtp2) first. Rather they are ordered by usubjid. I tried sorting by trtp2 alone without other variables also. Is there anything wrong that I am doing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data= mo out=mo2 ;&lt;BR /&gt;by atptn trtp2 usubjid ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgpanel data=mo2 ;&lt;BR /&gt;panelby atptn / layout=columnlattice onepanel noborder colheaderpos=bottom novarname ;&lt;BR /&gt;vbar usubjid / response=aval group=trtp2&lt;BR /&gt;groupdisplay=cluster CLUSTERWIDTH= 1 grouporder=data;&lt;BR /&gt;colaxis display=(nolabel noticks );&lt;BR /&gt;rowaxis label=' ' grid offsetmax=0.025 ;&lt;BR /&gt;keylegend/ title="";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 04:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grouporder-doesn-t-work-in-proc-sgpanel-clustered-bar-chart/m-p/632216#M19619</guid>
      <dc:creator>mahendraksas</dc:creator>
      <dc:date>2020-03-15T04:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Grouporder doesn't work in proc sgpanel clustered bar chart graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grouporder-doesn-t-work-in-proc-sgpanel-clustered-bar-chart/m-p/632247#M19620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/316500"&gt;@mahendraksas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this adaptation meet your expectations?&lt;/P&gt;
&lt;P&gt;Could you please clarify how the graphic would look like?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=mo out=mo2;
	by atptn trtp2 usubjid;
run;

proc sgpanel data=mo2;
	panelby atptn / layout=columnlattice onepanel noborder colheaderpos=bottom 
		novarname;
	vbar trtp2 / response=aval group=usubjid groupdisplay=stack CLUSTERWIDTH=1 
		grouporder=data;
	colaxis display=(nolabel noticks);
	rowaxis label=' ' grid offsetmax=0.025;
	keylegend/ title="";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 11:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grouporder-doesn-t-work-in-proc-sgpanel-clustered-bar-chart/m-p/632247#M19620</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-03-15T11:39:07Z</dc:date>
    </item>
  </channel>
</rss>

