<?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: See distributions of student height by grade level in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395881#M13555</link>
    <description>&lt;P&gt;Follow this example and use HBOX instead of VBOX in PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2017/06/16/scatter-mean-value/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2017/06/16/scatter-mean-value/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plot sample data if you&amp;nbsp;want a code answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 11:55:29 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-09-14T11:55:29Z</dc:date>
    <item>
      <title>See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395871#M13553</link>
      <description>&lt;P&gt;Would someone please steer me in the right direction for creating the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Grade-Height.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15137iA6050BB8BC03F163/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Grade-Height.png" alt="Grade-Height.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the example above, there are four grade levels, and height generally overlaps to a degree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally the plot should show a distribution, clustering toward the center of each grade, and outliers at either end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nicholas Kormanik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395871#M13553</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2017-09-14T09:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395874#M13554</link>
      <description>&lt;P&gt;My goto place for anything graph related is this site:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are thousands of examples there.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 10:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395874#M13554</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-14T10:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395881#M13555</link>
      <description>&lt;P&gt;Follow this example and use HBOX instead of VBOX in PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2017/06/16/scatter-mean-value/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2017/06/16/scatter-mean-value/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plot sample data if you&amp;nbsp;want a code answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395881#M13555</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-14T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395888#M13556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try proc boxplot for this type of analysis. It will compare distribution of height at each grade. Also highlights outliers and skewness.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 12:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395888#M13556</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2017-09-14T12:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395906#M13557</link>
      <description>&lt;P&gt;I like draycut's solution because it seems closest to the image that you posted. However, be aware that box plots show a schematic representation of the distribution, and jittering&amp;nbsp;breaks down when you get to thousands of observations. For larger samples, look at &lt;A href="http://blogs.sas.com/content/iml/2016/03/09/comparative-panel-overlay-histograms-sas.html" target="_self"&gt;comparative histograms&lt;/A&gt;, which scale to larger samples.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395906#M13557</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-14T13:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395935#M13558</link>
      <description>&lt;P&gt;Doesn't show "outliers" but something like this perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data example;
   do grade= 1 to 4;
      do i=1 to 1000;
         height = grade*2 + round(rand('uniform')*36);
         output;
      end;
   end;
run;

proc sgplot data=example;
   density height /group=grade;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2017 14:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/395935#M13558</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-14T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/396122#M13567</link>
      <description>&lt;P&gt;Rick, I think the first plot from your article will work well for my purpose.&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;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=sas_1.divisions_20905;
  class Rank;
  var i_20905;
  histogram i_20905 / nrows=7 odstitle="i_20905";
  ods select histogram;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two follow-up questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Could we overlay some statistical information within the plot, such as percentile numbers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Output plot files need to be appropriately named.&amp;nbsp; In the case above,&amp;nbsp;"i_20905".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much for your help.&amp;nbsp; As well as to the others here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 23:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/396122#M13567</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2017-09-14T23:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: See distributions of student height by grade level</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/396224#M13571</link>
      <description>&lt;P&gt;The following seems to work out pretty well.&amp;nbsp; Thanks again for everyones help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / reset=index imagename="20905";

proc univariate data=sas_1.divisions_20905;
class rank (order=data);
var i_20905;
histogram i_20905 / nrows=7 odstitle="20905";
inset nobs max p95 p75 mean p50 p25 p5 min / format=6.1 pos=nw;
ods select histogram;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/See-distributions-of-student-height-by-grade-level/m-p/396224#M13571</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2017-09-15T09:34:27Z</dc:date>
    </item>
  </channel>
</rss>

