<?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 Boxplot gender in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-gender/m-p/60822#M17250</link>
    <description>I am creating a boxplot of ethnicity stratified by gender. I want a box for males and one for females right next to eachother representing each ethnicity, is there a way to make the boxes side by side and not overlapping?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This is my graph code:&lt;BR /&gt;
goptions reset = all;&lt;BR /&gt;
goptions ftext='swiss' htext=12pt xpixels=1800 ypixels=1500;&lt;BR /&gt;
symbol1 interpol=boxt10 cv=black co=black bwidth=15 v=dot width=1 height=1;&lt;BR /&gt;
symbol2 interpol=boxt10 cv=red co=red bwidth=15 v=dot width=1 height=1;&lt;BR /&gt;
symbol1 cv=black co=black v=dot width=1 height=1;&lt;BR /&gt;
symbol2 cv=red co=red v=dot width=1 height=1;&lt;BR /&gt;
axis1 major=(n=2 H=1) label=(h=30pt 'Gender')  width=2 offset=(25pct);&lt;BR /&gt;
axis2 major=(n=3 H=1) label=(h=30pt 'Ethnicity') width=2 offset=(10pct);&lt;BR /&gt;
axis3 label= (a=90 r=0 F='swiss' 'Predicted Clearance')  order=0 to 160 by 20;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I have specified a seperate color for both men and women and added a legend so that you can tell them apart.&lt;BR /&gt;
This is my plotting code:&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data= cl2;&lt;BR /&gt;
title height=36pt 'Boxplot of Predicted V3 by Ethnicity Stratified by Gender';&lt;BR /&gt;
footnote height=28pt 'Box-25th to 75th&lt;BR /&gt;
  Error Bars-10th to 90th';&lt;BR /&gt;
plot Predicted_cl*ethnicity=  gender/ &lt;BR /&gt;
	haxis=axis2 &lt;BR /&gt;
	vaxis=axis5;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
my result is a boxplot by ethnicity with sperate color boxes for males and females overlapping one another.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way that I can make males and females side by side so that the graph is easier to read?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
    <pubDate>Tue, 11 Nov 2008 19:55:21 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-11-11T19:55:21Z</dc:date>
    <item>
      <title>Boxplot gender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-gender/m-p/60822#M17250</link>
      <description>I am creating a boxplot of ethnicity stratified by gender. I want a box for males and one for females right next to eachother representing each ethnicity, is there a way to make the boxes side by side and not overlapping?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This is my graph code:&lt;BR /&gt;
goptions reset = all;&lt;BR /&gt;
goptions ftext='swiss' htext=12pt xpixels=1800 ypixels=1500;&lt;BR /&gt;
symbol1 interpol=boxt10 cv=black co=black bwidth=15 v=dot width=1 height=1;&lt;BR /&gt;
symbol2 interpol=boxt10 cv=red co=red bwidth=15 v=dot width=1 height=1;&lt;BR /&gt;
symbol1 cv=black co=black v=dot width=1 height=1;&lt;BR /&gt;
symbol2 cv=red co=red v=dot width=1 height=1;&lt;BR /&gt;
axis1 major=(n=2 H=1) label=(h=30pt 'Gender')  width=2 offset=(25pct);&lt;BR /&gt;
axis2 major=(n=3 H=1) label=(h=30pt 'Ethnicity') width=2 offset=(10pct);&lt;BR /&gt;
axis3 label= (a=90 r=0 F='swiss' 'Predicted Clearance')  order=0 to 160 by 20;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I have specified a seperate color for both men and women and added a legend so that you can tell them apart.&lt;BR /&gt;
This is my plotting code:&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data= cl2;&lt;BR /&gt;
title height=36pt 'Boxplot of Predicted V3 by Ethnicity Stratified by Gender';&lt;BR /&gt;
footnote height=28pt 'Box-25th to 75th&lt;BR /&gt;
  Error Bars-10th to 90th';&lt;BR /&gt;
plot Predicted_cl*ethnicity=  gender/ &lt;BR /&gt;
	haxis=axis2 &lt;BR /&gt;
	vaxis=axis5;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
my result is a boxplot by ethnicity with sperate color boxes for males and females overlapping one another.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way that I can make males and females side by side so that the graph is easier to read?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 11 Nov 2008 19:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-gender/m-p/60822#M17250</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-11T19:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot gender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-gender/m-p/60823#M17251</link>
      <description>Check the documentation for PROC BOXPLOT.  It think it has the option you want.&lt;BR /&gt;
&lt;BR /&gt;
Otherwise, you could do it in PROC GPLOT by doing a separate plot for each level of ethnicity and then using GREPLAY to re-assemble the pieces (clumsy, but it might get you to the answer if you need other features of GPLOT).&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier</description>
      <pubDate>Tue, 11 Nov 2008 21:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-gender/m-p/60823#M17251</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-11-11T21:31:06Z</dc:date>
    </item>
  </channel>
</rss>

