<?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: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552318#M18014</link>
    <description>&lt;P&gt;Since your data is in the correct order, try GROUPORDER=DATA and see if that works for you.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 19:56:13 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-04-18T19:56:13Z</dc:date>
    <item>
      <title>Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552176#M18007</link>
      <description>&lt;P&gt;I am using SGPLOT (in SAS 9.4 1M4) to create a stacked bar chart. Each subject has 5 visits (Visit 1,2,3,4,5) and a dose at each visit. They have a total dose at each visit. My Y-axis is the total dose. The X-axis is each subject. Each stacked bar shows the total dose split up by visit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc sgplot data=test;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;vbar subject / response=tot&amp;nbsp; /* Total Dose at each visit by subject. So each subject has 5 records to capture total dose at a visit*/&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&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;group=visit&amp;nbsp; &amp;nbsp; &amp;nbsp;/*Numeric 1,2,3,4,5*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&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;categoryorder=respasc /*Displays totals by ascending oder*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&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; /* grouporder=ascending ***This accomplishes the requirement to keep the visits in order. If I try to use both&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;categoryorder and grouporder options together it does not work*/;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;xaxis label='Subject';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;yaxis label='Total Dose';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in each stacked bar, I need to keep the visits in the same visit order (1,2,3,4,5) instead of their dose at each visit. So right now, if visit 4 has a smaller dose than visit 1, it shows up before (bottom of the stack) the visit 1 dose in the stack. I want the stack to always display visit 1 before visit 2 and so on for each subject while still displaying the stacks in ascending order of TOTAL DOSE. How can I accomplish this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vamsi&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 16:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552176#M18007</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-18T16:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552183#M18008</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271147"&gt;@Vamsi_77&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am using SGPLOT (in SAS 9.4 1M4) to create a stacked bar chart. Each subject has 5 visits (Visit 1,2,3,4,5) and a dose at each visit. They have a total dose at each visit. My Y-axis is the total dose. The X-axis is each subject. Each stacked bar shows the total dose split up by visit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sgplot data=test;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;vbar subject / response=tot&amp;nbsp; /* Total Dose at each visit by subject. So each subject has 5 records to capture total dose at a visit*/&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&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;group=visit&amp;nbsp; &amp;nbsp; &amp;nbsp;/*Numeric 1,2,3,4,5*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&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;categoryorder=respasc /*Displays totals by ascending oder*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&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; /* grouporder=ascending ***This accomplishes the requirement to keep the visits in order. If I try to use both&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;categoryorder and grouporder options together it does not work*/;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;xaxis label='Subject';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;yaxis label='Total Dose';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now in each stacked bar, I need to keep the visits in the same visit order (1,2,3,4,5) instead of their dose at each visit. So right now, if visit 4 has a smaller dose than visit 1, it shows up before (bottom of the stack) the visit 1 dose in the stack. I want the stack to always display visit 1 before visit 2 and so on for each subject while still displaying the stacks in ascending order of TOTAL DOSE. How can I accomplish this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Vamsi&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;From the documentation on CATEGORYORDER&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryInteraction" rowspan="2"&gt;Interactions&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;When a group variable is used with the CATEGORYORDER= option, the response values for each group segment become the sorting key. CATEGORYORDER sorts first by the response statistic and then displays the GROUP values sorted within each category.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, do not use the categoryorder option.&lt;/P&gt;
&lt;P&gt;Try using the GROUPORDER=ASCENDING option to use the group variable to control order of the segments.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 16:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552183#M18008</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-18T16:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552195#M18009</link>
      <description>&lt;P&gt;Yes, I already did that but then I would not be able to sort by ascending order of total dose. I need to combine the functionality of the category order and group order.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 17:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552195#M18009</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-18T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552202#M18010</link>
      <description>&lt;P&gt;Here's how you can do it:&lt;/P&gt;
&lt;P&gt;1. Using PROC SUMMARY or PROC MEANS, compute the bar height MINUS THE GROUP. Some like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=whatever nway;
class subject;
var tot;
output out=barheight sum=height;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. Match merge the "barheight" data with the "whatever" data by SUBJECT.&lt;/P&gt;
&lt;P&gt;3. PROC SORT the merged dataset by HEIGHT and VISIT.&lt;/P&gt;
&lt;P&gt;4. Use VBARPARM instead of VBAR to render the chart. Be sure to set DISCRETEORDER=DATA on the XAXIS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 17:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552202#M18010</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-04-18T17:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552291#M18011</link>
      <description>&lt;P&gt;Thanks, Dan. I am at the 4th step and this is the code I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbarparm category=subjid response=tot / group=Visit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis discreteorder=data label='Subject';&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis label='Total Dose';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting a graph similar to using the grouporder option that I was using previously. Can you please let me know what I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552291#M18011</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-18T19:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552299#M18012</link>
      <description>&lt;P&gt;Can you PROC PRINT your data and verify that the groups within each bar are in order? You might need to specify GROUPORDER=ASCENDING on the VBARPARM as well. Let me know what you find.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552299#M18012</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-04-18T19:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552306#M18013</link>
      <description>&lt;P&gt;The PROC PRINT shows the data are in the correct order. The grouporder=ascending does not add anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 20:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552306#M18013</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-18T20:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552318#M18014</link>
      <description>&lt;P&gt;Since your data is in the correct order, try GROUPORDER=DATA and see if that works for you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552318#M18014</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-04-18T19:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552320#M18015</link>
      <description>&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much. The issue was to sort it by only the tot_height and then it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/552320#M18015</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-18T19:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553690#M18032</link>
      <description>&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I add a data label on top of a few stacked bars. For example, I want to add a label above all 'male' subjects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data dlabel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if male='Y' then dlabel="*";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;else dlabel=" ";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the datalabel=dlabel option in my vbarparm statement as you suggested in another post.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Adding-a-significance-star-in-a-bar-chart/m-p/335931" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Adding-a-significance-star-in-a-bar-chart/m-p/335931&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not work for me. I would appreciate any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 15:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553690#M18032</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-24T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553701#M18033</link>
      <description>&lt;P&gt;That example also needed GROUPDISPLAY=CLUSTER. I have now corrected that example. Thanks for bringing it to my attention. Since you need this for stacked bars, you can use a TEXT plot overlay on your VBARPARM to add the labels at the top. Here is a simple example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* The standard bar calculations using the group variable*/
proc summary data=sashelp.class nway;
class age sex;
var weight;
output out=temp sum=sumwgt;
run;

/* Find the top of the bars */
proc summary data=sashelp.class nway;
class age;
var weight;
output out=labelpos sum=pos;
run;

/* merge what is needed, and add your labels */
data class;
merge temp labelpos (keep=age pos);
by age;
if age &amp;lt; 14 then label="Young";
else label="Old";
run;

proc sgplot data=class;
vbarparm category=age response=sumwgt / group=sex;
text x=age y=pos text=label / position=top;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 16:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553701#M18033</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-04-24T16:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553703#M18034</link>
      <description>&lt;P&gt;I already have a group. So my code looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; vbarparm category=subjid repsonse=tot /*total dose at each visit*/&lt;/P&gt;&lt;P&gt;&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; / group=visit grouporder=ascending datalabel=dlabel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;xaxis discreteorder=data label='Subject';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;yaxis label = 'Total Dose' values=(0 to 5000 by 1000) offsetmin=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 16:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553703#M18034</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-24T16:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Box Plot sorted by Y-axis variable and an internal sort order for each stack</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553724#M18035</link>
      <description>&lt;P&gt;It worked. I did not notice the y=bar_ht in the text statement. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 17:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Box-Plot-sorted-by-Y-axis-variable-and-an-internal-sort/m-p/553724#M18035</guid>
      <dc:creator>Vamsi_77</dc:creator>
      <dc:date>2019-04-24T17:20:24Z</dc:date>
    </item>
  </channel>
</rss>

