<?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 How to Proc Boxplot with Descending means? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Proc-Boxplot-with-Descending-means/m-p/132280#M35957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how to creat a boxplot with &lt;STRONG&gt;descending y axis mean&lt;/STRONG&gt; values?&amp;nbsp; It seems the only options for descending is descending alphabetical by the xaxis classfication variable. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am doing Proc Boxplot with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Proc Boxplot&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;data&lt;/SPAN&gt;=sw_glove;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt; Plot&lt;/SPAN&gt; (concentration)*Process;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;By Descending&lt;/SPAN&gt; Process;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Run&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want descending Concentration values, grouped by Process (numeric), not descending process names (alpahbetic).&lt;/P&gt;&lt;P&gt;Another option would be to list out the x axis variable names in the descending value order, but this seems like a lot of meaningless work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 19:50:46 GMT</pubDate>
    <dc:creator>Jennahawk12</dc:creator>
    <dc:date>2013-03-11T19:50:46Z</dc:date>
    <item>
      <title>How to Proc Boxplot with Descending means?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Proc-Boxplot-with-Descending-means/m-p/132280#M35957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how to creat a boxplot with &lt;STRONG&gt;descending y axis mean&lt;/STRONG&gt; values?&amp;nbsp; It seems the only options for descending is descending alphabetical by the xaxis classfication variable. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am doing Proc Boxplot with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Proc Boxplot&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;data&lt;/SPAN&gt;=sw_glove;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt; Plot&lt;/SPAN&gt; (concentration)*Process;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;By Descending&lt;/SPAN&gt; Process;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Run&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want descending Concentration values, grouped by Process (numeric), not descending process names (alpahbetic).&lt;/P&gt;&lt;P&gt;Another option would be to list out the x axis variable names in the descending value order, but this seems like a lot of meaningless work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Proc-Boxplot-with-Descending-means/m-p/132280#M35957</guid>
      <dc:creator>Jennahawk12</dc:creator>
      <dc:date>2013-03-11T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Proc Boxplot with Descending means?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Proc-Boxplot-with-Descending-means/m-p/132281#M35958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SGPLOT, I would probably do this by sorting the data, then using discreteorder=data&amp;nbsp; on the axis statemetn, as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc sql;
&amp;nbsp; create table shoes as 
&amp;nbsp; select region, sales, mean(sales) as mean
&amp;nbsp; from sashelp.shoes
&amp;nbsp; group by region
&amp;nbsp; order by&amp;nbsp; mean descending,region
&amp;nbsp; ;
quit;

title1 "discreteorder=data";
proc sgplot data=shoes;
&amp;nbsp; vbox sales/category=region;
&amp;nbsp; xaxis type=discrete discreteorder=data;
run;
title1;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure the easiest way to do it with PROC BOXPLOT.&amp;nbsp; If you do need a list of x-values for an x-statement, you could generate it with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;170&amp;nbsp; proc sql;
171&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct quote(trim(region)) , mean(sales) as mean
172&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into :RegionList separated by " ", :dummy
173&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from sashelp.shoes
174&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by region
175&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by mean descending
176&amp;nbsp;&amp;nbsp;&amp;nbsp; ;
177&amp;nbsp; quit;

178
179&amp;nbsp; %put &amp;amp;RegionList;
"Middle East" "United States" "Canada" "Central America/Caribbean" "Western Europe" "Eastern
Europe" "Pacific" "South America" "Africa" "Asia"
&lt;/PRE&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;--Q;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 01:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Proc-Boxplot-with-Descending-means/m-p/132281#M35958</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-03-12T01:32:41Z</dc:date>
    </item>
  </channel>
</rss>

