<?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: Box and whisker plot generation in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-whisker-plot-generation/m-p/407634#M13922</link>
    <description>&lt;P&gt;I am no expert on PROC BOXPLOT, so I can not say if it can be done. I recommend using PROC SGPLOT. Have a look at this example and the solution by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;to get you started&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/proc-SGPLOT-vbox-summary-statistics-like-proc-boxplot/td-p/254636" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/proc-SGPLOT-vbox-summary-statistics-like-proc-boxplot/td-p/254636&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 13:22:33 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-10-26T13:22:33Z</dc:date>
    <item>
      <title>Box and whisker plot generation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-whisker-plot-generation/m-p/407581#M13921</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;using proc boxplot to generate the box plots that I need.&lt;BR /&gt;&lt;BR /&gt;We have a couple of requirements for the figure we are trying to create:&lt;BR /&gt;&lt;BR /&gt;1)&amp;nbsp; We need to have the summary statistics such as n, min max, outliers etc. in the box plot in the form of a table.&amp;nbsp; We have tried&lt;BR /&gt;the "insetgroup" option but it is not displaying the "NOUT" "NHIGH" and&amp;nbsp;"NLOW"&amp;nbsp;values which is the count of the outliers.&lt;BR /&gt;&lt;BR /&gt;2) We also need to group the boxplots side by side by treatment.&amp;nbsp; Currently we are using in the plot statement the following code:&lt;BR /&gt;&lt;BR /&gt;plot aval*avisitn&amp;nbsp; / boxstyle = schematic vref= 3.5 40.0&amp;nbsp;&amp;nbsp;haxis = 1 to 19 by 1;&lt;BR /&gt;&lt;BR /&gt;The y-axis values (aval)&amp;nbsp;are result of lab tests and the x-axis values (avisitn)&amp;nbsp;are the visits.&amp;nbsp; Hence we are plotting the lab values per visit.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We now need to group multiple treatments for each visit side by side.&amp;nbsp; We tried the following "plot aval*avisitn = trt02p".&amp;nbsp; This did&lt;BR /&gt;not give the desired result.&amp;nbsp; TRT02P is the treatment variable.&lt;BR /&gt;&lt;BR /&gt;We are currently using SAS 9.4 on the server.&amp;nbsp; Can you suggest if these 2 situations can be accommodated in proc boxplot or not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If anyone has an alternative approach then please specify.&amp;nbsp; I have tried proc sgplot and I am able to get the box plots side by side, however, the inset option is not automatically going to display the summary stats.&amp;nbsp; They will have to be calculated and manually put.&lt;/P&gt;&lt;P&gt;Since each lab test will be on&amp;nbsp;a separate page i.e. plotting "by paramcd"&amp;nbsp; where paramcd is the unique lab test code, it will be difficult to code this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 08:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-whisker-plot-generation/m-p/407581#M13921</guid>
      <dc:creator>sgilani</dc:creator>
      <dc:date>2017-10-26T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Box and whisker plot generation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-whisker-plot-generation/m-p/407634#M13922</link>
      <description>&lt;P&gt;I am no expert on PROC BOXPLOT, so I can not say if it can be done. I recommend using PROC SGPLOT. Have a look at this example and the solution by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;to get you started&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/proc-SGPLOT-vbox-summary-statistics-like-proc-boxplot/td-p/254636" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/proc-SGPLOT-vbox-summary-statistics-like-proc-boxplot/td-p/254636&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 13:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-whisker-plot-generation/m-p/407634#M13922</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-10-26T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Box and whisker plot generation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Box-and-whisker-plot-generation/m-p/407663#M13923</link>
      <description>&lt;P&gt;Suggest you post a small amount of sample data, for people to play with.&amp;nbsp; I agree with the suggestion to look into SGPLOT (or even GTL), for the box plot, and see the axistable statement for generating a table of summary statistics below the plot.&amp;nbsp; SGPLOT is very friendly, lots of examples at Sanjay Matange's blog, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2015/12/23/box-plot-with-stat-table-and-markers/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2015/12/23/box-plot-with-stat-table-and-markers/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 14:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Box-and-whisker-plot-generation/m-p/407663#M13923</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-10-26T14:50:44Z</dc:date>
    </item>
  </channel>
</rss>

