<?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 SGPLOT vbar with upper error bar as 3rd quartile in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-vbar-with-upper-error-bar-as-3rd-quartile/m-p/482916#M16657</link>
    <description>&lt;P&gt;I am running a vertical bar chart for stat=median and would like an upper error bar to represent the 3rd quartile of the IQR. Is there a way to do this? I think error bars are only displayed when stat = mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=dat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vbar x/ response=y stat=median;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 19:11:44 GMT</pubDate>
    <dc:creator>Melk</dc:creator>
    <dc:date>2018-07-31T19:11:44Z</dc:date>
    <item>
      <title>SGPLOT vbar with upper error bar as 3rd quartile</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-vbar-with-upper-error-bar-as-3rd-quartile/m-p/482916#M16657</link>
      <description>&lt;P&gt;I am running a vertical bar chart for stat=median and would like an upper error bar to represent the 3rd quartile of the IQR. Is there a way to do this? I think error bars are only displayed when stat = mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=dat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vbar x/ response=y stat=median;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 19:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-vbar-with-upper-error-bar-as-3rd-quartile/m-p/482916#M16657</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-07-31T19:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT vbar with upper error bar as 3rd quartile</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-vbar-with-upper-error-bar-as-3rd-quartile/m-p/482923#M16658</link>
      <description>&lt;P&gt;For such custom situations, you&amp;nbsp;will need to compute the&amp;nbsp;median and 3rd quartile values by category using PROC MEANS.&amp;nbsp; Then you can use vbarparm to plot the bar chart of median by category and overlay a scatter of median by category with upper x-error bar to display the quartile.&amp;nbsp; You can set the scatter marker size to zero.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 19:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-vbar-with-upper-error-bar-as-3rd-quartile/m-p/482923#M16658</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-07-31T19:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT vbar with upper error bar as 3rd quartile</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-vbar-with-upper-error-bar-as-3rd-quartile/m-p/482950#M16659</link>
      <description>&lt;P&gt;Or using more of a "draw" it approach using NEEDLE statement with pre-summarized data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc summary data=sashelp.class nway;
   class sex;
   var weight;
   output out=plot (drop=_:) median= Q3= /autoname;
run;

   
proc sgplot data=plot;
  needle x=sex y=weight_q3 /markers markerattrs=(symbol=tack);
  vbarparm category=sex response=weight_median/ name='bar';
  keylegend 'bar';
run;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jul 2018 21:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-vbar-with-upper-error-bar-as-3rd-quartile/m-p/482950#M16659</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-31T21:34:48Z</dc:date>
    </item>
  </channel>
</rss>

