<?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: proc gchart: adding 'subgroup' gives different error bars in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-adding-subgroup-gives-different-error-bars/m-p/602229#M19072</link>
    <description>&lt;P&gt;Take away the SUBGROUP and add PATTERNID=MIDPOINT to see if you get what you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 21:38:26 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-11-06T21:38:26Z</dc:date>
    <item>
      <title>proc gchart: adding 'subgroup' gives different error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-adding-subgroup-gives-different-error-bars/m-p/602227#M19071</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When adding 'subgroup' to the gchart options, in order to allow bars have pre-defined patterns, the error bars are suddenly wrongly calculated. I do not know what the reason would be, and how to solve the problem for this simple graph...&lt;/P&gt;&lt;P&gt;All help more than welcome&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(A) below the code and barchart &lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;without&lt;/EM&gt; &lt;/U&gt;&lt;/STRONG&gt;subgroup, and &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;correctly&lt;/STRONG&gt; &lt;/U&gt;&lt;/EM&gt;calculated error bars:&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="correct error bars.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33725iECD75CC7B6CC91BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="correct error bars.png" alt="correct error bars.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset=all;&lt;BR /&gt;proc gchart data = cornell.transweightfinalchart;&lt;BR /&gt;legend label=(h=1.5) VALUE=(h=1.5);&lt;BR /&gt;axis1 label=(f='Times new roman/bo' h=2 a=90 "Larva (mg)" ) order=(0.36 to 0.52 by 0.02) value=(h=1.5) minor=(n=1);&lt;BR /&gt;axis2 label=none value=(h=2 f='Times new roman');&lt;BR /&gt;axis3 label=none value=(h=2 f='Times new roman/bo');&lt;BR /&gt;vbar Treatment/&lt;BR /&gt;group=Experiment&lt;BR /&gt;sumvar=L&lt;BR /&gt;errorbar=top&lt;BR /&gt;clm=68.26&lt;BR /&gt;width= 8&lt;BR /&gt;space= 1&lt;BR /&gt;gspace= 3&lt;BR /&gt;legend= legend&lt;BR /&gt;type=mean&lt;BR /&gt;raxis= axis1&lt;BR /&gt;maxis=axis2&lt;BR /&gt;gaxis=axis3;&lt;BR /&gt;where treatment ne '';&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(B) Below a &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;subgroup&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;, named 'Treatment' is added in order to adjust the pattern of the bar that represents either the the Cont. or the Infect. group (i.e. also pattern1 and pattern2 has been added). Error bars: &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;not correct&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="wrong error bars.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33726i997D4E13B3C8BD65/image-size/large?v=v2&amp;amp;px=999" role="button" title="wrong error bars.png" alt="wrong error bars.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV class="c"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c"&gt;goptions reset=all;&lt;BR /&gt;proc gchart data = cornell.transweightfinalchart;&lt;BR /&gt;pattern1 v=solid color=graycc;&lt;BR /&gt;pattern2 v=solid color=cx437193;&lt;BR /&gt;legend label=(h=1.5) VALUE=(h=1.5);&lt;BR /&gt;axis1 label=(f='Times new roman/bo' h=2 a=90 "Larva (mg)" ) order=(0.36 to 0.52 by 0.02) value=(h=1.5) minor=(n=1);&lt;BR /&gt;axis2 label=none value=(h=2 f='Times new roman');&lt;BR /&gt;axis3 label=none value=(h=2 f='Times new roman/bo');&lt;BR /&gt;vbar Treatment/&lt;BR /&gt;group=Experiment&lt;BR /&gt;sumvar=L&lt;BR /&gt;errorbar=top&lt;BR /&gt;clm=68.26&lt;BR /&gt;subgroup=Treatment&lt;BR /&gt;width= 8&lt;BR /&gt;space= 1&lt;BR /&gt;gspace= 3&lt;BR /&gt;legend= legend&lt;BR /&gt;type=mean&lt;BR /&gt;raxis= axis1&lt;BR /&gt;maxis=axis2&lt;BR /&gt;gaxis=axis3;&lt;BR /&gt;where treatment ne '';&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/DIV&gt;&lt;DIV class="c"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c"&gt;What did I do wrong?&lt;/DIV&gt;&lt;DIV class="c"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c"&gt;Many thanks in advance.&lt;/DIV&gt;&lt;DIV class="c"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Nov 2019 21:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-adding-subgroup-gives-different-error-bars/m-p/602227#M19071</guid>
      <dc:creator>Dieter</dc:creator>
      <dc:date>2019-11-06T21:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart: adding 'subgroup' gives different error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-adding-subgroup-gives-different-error-bars/m-p/602229#M19072</link>
      <description>&lt;P&gt;Take away the SUBGROUP and add PATTERNID=MIDPOINT to see if you get what you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 21:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-adding-subgroup-gives-different-error-bars/m-p/602229#M19072</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-11-06T21:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart: adding 'subgroup' gives different error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-adding-subgroup-gives-different-error-bars/m-p/602257#M19073</link>
      <description>&lt;P&gt;Wow Dan,&lt;/P&gt;&lt;P&gt;this is THE solution, indeed!&amp;nbsp; I do not know why, but it worked.&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dieter&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="correct error bars with correct pattern.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33729i0ED5057E36FD9C35/image-size/large?v=v2&amp;amp;px=999" role="button" title="correct error bars with correct pattern.png" alt="correct error bars with correct pattern.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 22:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-adding-subgroup-gives-different-error-bars/m-p/602257#M19073</guid>
      <dc:creator>Dieter</dc:creator>
      <dc:date>2019-11-06T22:30:32Z</dc:date>
    </item>
  </channel>
</rss>

