<?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 can I get a Boxplot by Group in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606311#M19147</link>
    <description>&lt;P&gt;Steps for resolving this:&lt;/P&gt;
&lt;P&gt;Which variable's values&amp;nbsp;appeared on the axis?&lt;/P&gt;
&lt;P&gt;Which variable's values appeared in the legend as a result of being the Group= variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch the positions of those variables in the code.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 22:02:23 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-11-21T22:02:23Z</dc:date>
    <item>
      <title>How can I get a Boxplot by Group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606308#M19146</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a boxplot by several groups. But I am having a lot of trouble grouping them and presenting them in the right order. I would really appreciate if someone could help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached the output.&lt;/P&gt;&lt;P&gt;I would like 'Yes' and 'No' to be grouped within the groups 'a' 'b' 'c' .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph box_template;&lt;BR /&gt;&lt;BR /&gt;begingraph / designwidth=6.5in designheight=4.33in ;&lt;/P&gt;&lt;P&gt;*--------------------------------------------------------------------*&lt;BR /&gt;| BOX Plot&lt;BR /&gt;*--------------------------------------------------------------------*;&lt;/P&gt;&lt;P&gt;layout overlay / yaxisopts=(label="&amp;amp;ylabel")&lt;/P&gt;&lt;P&gt;xaxisopts=(label="&amp;amp;xlabel");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;boxplot x = treat y = aval/ group = &amp;amp;group name="treat" groupdisplay = cluster display=(caps fill mean median OUTLIERS ) outlierattrs=(symbol=circle);&lt;/P&gt;&lt;P&gt;discretelegend "treat" / location=outside halign=center valign=bottom&lt;BR /&gt;order=ROWMAJOR across= 2 border=false valueattrs=(size=7pt) displayclipped=true;&lt;/P&gt;&lt;P&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 21:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606308#M19146</guid>
      <dc:creator>DinoPut</dc:creator>
      <dc:date>2019-11-21T21:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a Boxplot by Group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606311#M19147</link>
      <description>&lt;P&gt;Steps for resolving this:&lt;/P&gt;
&lt;P&gt;Which variable's values&amp;nbsp;appeared on the axis?&lt;/P&gt;
&lt;P&gt;Which variable's values appeared in the legend as a result of being the Group= variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch the positions of those variables in the code.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 22:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606311#M19147</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-21T22:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a Boxplot by Group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606333#M19148</link>
      <description>&lt;P&gt;Thank you for your reply. I did try switching the variable and the figure didn't look as expected. Please see the attached image.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 22:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606333#M19148</guid>
      <dc:creator>DinoPut</dc:creator>
      <dc:date>2019-11-21T22:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a Boxplot by Group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606341#M19149</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237983"&gt;@DinoPut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your reply. I did try switching the variable and the figure didn't look as expected. Please see the attached image.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You changed the code. You should show us the changed code.&lt;/P&gt;
&lt;P&gt;And there are &lt;STRONG&gt;two variables&lt;/STRONG&gt; that need to change. Your image (which can be posted in line by using the PHOTOS icon in the message menu to navigate to where the output was created instead of making other documents and attaching them) looks like you only switched one and likely have the YESNO variable in two places in your boxplot statement.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 23:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-get-a-Boxplot-by-Group/m-p/606341#M19149</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-21T23:24:50Z</dc:date>
    </item>
  </channel>
</rss>

