<?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 Error bars in a barchart statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Error-bars-in-a-barchart-statement/m-p/30179#M895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This maybe just me being stubborn but I refuse to believe that I can't get error bars in a barchart statement using proc template.&amp;nbsp; The documentation indicates no love but I just don't buy it.&amp;nbsp; I can get error bars from barchartparm in proc template. I can get error bars from vbar in sgplot.&amp;nbsp;&amp;nbsp; So how do I get an error bar in a barchart statement in proc template?&amp;nbsp;&amp;nbsp;&amp;nbsp; If the answer is "You can't get an error bar from barchart" can someone point me to the complaint/feature request page?&amp;nbsp; I have a long, expletive laden rant to unload! :smileylaugh:&amp;nbsp;&amp;nbsp; j/k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 21:24:07 GMT</pubDate>
    <dc:creator>stygian</dc:creator>
    <dc:date>2012-03-13T21:24:07Z</dc:date>
    <item>
      <title>Error bars in a barchart statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Error-bars-in-a-barchart-statement/m-p/30179#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This maybe just me being stubborn but I refuse to believe that I can't get error bars in a barchart statement using proc template.&amp;nbsp; The documentation indicates no love but I just don't buy it.&amp;nbsp; I can get error bars from barchartparm in proc template. I can get error bars from vbar in sgplot.&amp;nbsp;&amp;nbsp; So how do I get an error bar in a barchart statement in proc template?&amp;nbsp;&amp;nbsp;&amp;nbsp; If the answer is "You can't get an error bar from barchart" can someone point me to the complaint/feature request page?&amp;nbsp; I have a long, expletive laden rant to unload! :smileylaugh:&amp;nbsp;&amp;nbsp; j/k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 21:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Error-bars-in-a-barchart-statement/m-p/30179#M895</guid>
      <dc:creator>stygian</dc:creator>
      <dc:date>2012-03-13T21:24:07Z</dc:date>
    </item>
    <item>
      <title>Error bars in a barchart statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Error-bars-in-a-barchart-statement/m-p/30180#M896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, this option is not available on the BarChart statement, so please proceed with your rant to SAS Tech Support. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get error bars with BarChart in GTL (proc template) you have to precompute the mean and limits and use BarChartParm.&amp;nbsp; The reasoning was that SAS users are experts at this (proc means) and an option is not needed. This also supports custom computed limits.&amp;nbsp; Subsequently it has become evident that such a convenience option on the BarChart itself would be useful and is planned for a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAR in SGPLOT computes the limits for you and then simply does something similar. You can extract the generated template from SGPLOT using TMPLOUT='finename' and inspect the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 04:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Error-bars-in-a-barchart-statement/m-p/30180#M896</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-03-14T04:59:43Z</dc:date>
    </item>
    <item>
      <title>Error bars in a barchart statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Error-bars-in-a-barchart-statement/m-p/30181#M897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although you're asking for proc template code ... I thought it might be worth showing you some Proc Gchart code where I annotate error bars on the bar chart (hopefully the spacing in the data lines won't get messed up too much in the copy-n-paste).&amp;nbsp; This is an adapted version of Example 10 in my new book "SAS/GRAPH: Beyond the Basics"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data repdata;&lt;BR /&gt;input Name $ 1-20 lower_whisker lower_box Median upper_box upper_whisker;&lt;BR /&gt;datalines;&lt;BR /&gt;Allison, R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5 6.1&amp;nbsp; 8.2 11.0 17.5&lt;BR /&gt;Jeffreys, E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0 5.8&amp;nbsp; 9.5 13.0 20.2&lt;BR /&gt;Peterson, B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.0 8.8 11.0 13.1 17.2&lt;BR /&gt;Proctor, L&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.0 6.1&amp;nbsp; 9.0 11.5 16.0&lt;BR /&gt;Taylor, C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.5 5.5&amp;nbsp; 9.0 12.6 18.7&lt;BR /&gt;Davis, J&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.5 6.0&amp;nbsp; 9.3 11.8 14.8&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let boxwidth=1.5;&lt;BR /&gt;%let linewidth=.5;&lt;BR /&gt;%let linecolor=black;&lt;BR /&gt;%let boxcolor=cxCAE1FF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data repanno; set repdata;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;length function color $8 style $15;&lt;/P&gt;&lt;P&gt;size=&amp;amp;linewidth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* draw the whiskers */&lt;BR /&gt;color="&amp;amp;linecolor";&lt;BR /&gt;ysys='2'; midpoint=Name;&lt;BR /&gt;function='move'; x=lower_whisker; output;&lt;BR /&gt;function='draw'; x=upper_whisker; output;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* draw the ends on the whiskers */&lt;BR /&gt;color="&amp;amp;linecolor";&lt;BR /&gt;ysys='2'; midpoint=Name;&lt;BR /&gt;function='move'; x=lower_whisker; output;&lt;BR /&gt;function='move'; ysys='7'; y=-1*&amp;amp;boxwidth; output;&lt;BR /&gt;function='draw'; line=1; y=+2*&amp;amp;boxwidth; output;&lt;BR /&gt;ysys='2'; midpoint=Name;&lt;BR /&gt;function='move'; x=upper_whisker; output;&lt;BR /&gt;function='move'; ysys='7'; y=-1*&amp;amp;boxwidth; output;&lt;BR /&gt;function='draw'; line=1; y=+2*&amp;amp;boxwidth; output;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* draw the box, using annotate 'bar' function */&lt;BR /&gt;color="&amp;amp;boxcolor";&lt;BR /&gt;ysys='2'; midpoint=Name;&lt;BR /&gt;function='move'; x=lower_box; output;&lt;BR /&gt;function='move'; ysys='7'; y=-1*&amp;amp;boxwidth; output;&lt;BR /&gt;function='bar'; line=0; style='solid'; x=upper_box; y=+2*&amp;amp;boxwidth; output;&lt;BR /&gt;color="&amp;amp;linecolor";&lt;BR /&gt;ysys='2'; midpoint=Name;&lt;BR /&gt;function='move'; x=lower_box; output;&lt;BR /&gt;function='move'; ysys='7'; y=-1*&amp;amp;boxwidth; output;&lt;BR /&gt;function='bar'; line=0; style='empty'; x=upper_box; y=+2*&amp;amp;boxwidth; output;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Median Line */&lt;BR /&gt;color="&amp;amp;linecolor";&lt;BR /&gt;ysys='2'; midpoint=Name;&lt;BR /&gt;function='move'; x=Median; output;&lt;BR /&gt;function='move'; ysys='7'; y=-1*&amp;amp;boxwidth; output;&lt;BR /&gt;function='draw'; line=1; y=+2*&amp;amp;boxwidth; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions gunit=pct htitle=5 ftitle="albany amt/bold" htext=3.0 ftext="albany amt" ctext=gray33;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 order=(0 to 25 by 5) minor=none label=none offset=(0,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 v=solid c=red;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 ls=1.5 "Annotated Boxplot on Gchart";&lt;BR /&gt;proc gchart data=repdata anno=repanno;&lt;BR /&gt; hbar name / type=sum sumvar=median&lt;BR /&gt; raxis=axis1 autoref cref=graydd clipref;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 18:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Error-bars-in-a-barchart-statement/m-p/30181#M897</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-03-16T18:05:08Z</dc:date>
    </item>
  </channel>
</rss>

