<?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 Box plots in a row for multiple variables in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Box-plots-in-a-row-for-multiple-variables/m-p/266046#M9519</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data file with a number of variables and I need a single graph that shows me box plots for every variable in one row so that they can be compared. I just can't find a way to realise this with the boxplot procedure. The box plots are always in separate rows and I need to specify a group variable even if I don't have separate groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2016 14:34:17 GMT</pubDate>
    <dc:creator>Jazzman</dc:creator>
    <dc:date>2016-04-25T14:34:17Z</dc:date>
    <item>
      <title>Box plots in a row for multiple variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-plots-in-a-row-for-multiple-variables/m-p/266046#M9519</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data file with a number of variables and I need a single graph that shows me box plots for every variable in one row so that they can be compared. I just can't find a way to realise this with the boxplot procedure. The box plots are always in separate rows and I need to specify a group variable even if I don't have separate groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 14:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-plots-in-a-row-for-multiple-variables/m-p/266046#M9519</guid>
      <dc:creator>Jazzman</dc:creator>
      <dc:date>2016-04-25T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Box plots in a row for multiple variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-plots-in-a-row-for-multiple-variables/m-p/266057#M9521</link>
      <description>&lt;P&gt;First off you would normalise the data needed, then graph on that. &amp;nbsp;You've not posted data, so I just assume something:&lt;/P&gt;
&lt;P&gt;ID &amp;nbsp; VARA &amp;nbsp; VARB &amp;nbsp; VARC&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; 12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 56 &amp;nbsp; &amp;nbsp; &amp;nbsp;34&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normalise to:&lt;/P&gt;
&lt;P&gt;ID &amp;nbsp; &amp;nbsp;VAR &amp;nbsp; RESULT&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; 56&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;C &amp;nbsp; &amp;nbsp; &amp;nbsp; 34&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=have;
  by id;
  vbox result / category=var;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Apr 2016 15:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-plots-in-a-row-for-multiple-variables/m-p/266057#M9521</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-25T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Box plots in a row for multiple variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-plots-in-a-row-for-multiple-variables/m-p/266123#M9524</link>
      <description>&lt;P&gt;As RW9 suggests, transpose your data to long form and use the CATEGORY= option. &lt;A href="/t5/forums/replypage/board-id/sas_graph/message-id/Order variables by values of a statistic" target="_self"&gt;An example in in this blog post&lt;/A&gt;. You can skip the steps about ordering the boxplots, unless that is something you want to incorporate.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 17:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-plots-in-a-row-for-multiple-variables/m-p/266123#M9524</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-04-25T17:17:44Z</dc:date>
    </item>
  </channel>
</rss>

