<?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 How to put error bars in vertical bars when using subgroup as an option in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20992#M534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan. The code you sent me worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 05:08:46 GMT</pubDate>
    <dc:creator>sfo</dc:creator>
    <dc:date>2012-03-08T05:08:46Z</dc:date>
    <item>
      <title>How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20986#M528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to put top error bars on my vertical bar charts. I am using porc gchart and have to use Subgroup option. I am getting the following warning when I use errorbar=top option "WARNING: Error bars are not supported when SUBGROUP= is specified.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 00:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20986#M528</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2012-03-03T00:56:52Z</dc:date>
    </item>
    <item>
      <title>How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20987#M529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To render this graph, you would need to compute the standard error for the entire bar and overlay the error bars as a separate plot. I can show you how to do this using the Graph Template Language (GTL) if you have SAS 9.2 or greater. What version of SAS do you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 17:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20987#M529</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2012-03-03T17:02:11Z</dc:date>
    </item>
    <item>
      <title>How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20988#M530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I use 9.2, if possible can you give me the idea how to use GTL? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 17:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20988#M530</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2012-03-03T17:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20989#M531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appreciate if you can give me an example of how to create standard error bars on bar graphs with subgroup as an option using GTL when working in SAS 9.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 19:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20989#M531</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2012-03-05T19:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20990#M532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to get with you on this. I've put together a little example below. The tricky part is not the graph template -- it's getting the data correct to draw the error bars in the correct location. In the example below, the stderr is computed in PROC SUMMARY, but is later modified to position the error bar correctly at the top of the bar. Let me know if you have any questions about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE lang="SAS"&gt;/* First, all data used for the overlay must be summarized */&lt;BR /&gt;proc summary data=sashelp.class nway;&lt;BR /&gt;class age;&lt;BR /&gt;var height;&lt;BR /&gt;output out=limits sum=limitsum stderr=stderr;&lt;BR /&gt;run;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc summary data=sashelp.class nway;&lt;BR /&gt;class age sex;&lt;BR /&gt;var height;&lt;BR /&gt;output out=subgroups sum=barsum;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data limits2;&lt;BR /&gt;rename age=age2;&lt;BR /&gt;set limits (keep=age stderr limitsum);&lt;BR /&gt;ustderror = limitsum + stderr;&lt;BR /&gt;lstderror = limitsum - stderr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data merged;&lt;BR /&gt;merge subgroups limits2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* The graph template */&lt;BR /&gt;proc template;&lt;BR /&gt;define statgraph barlimits;&lt;BR /&gt;begingraph;&lt;BR /&gt;layout overlay;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; barchartparm x=age y=barsum / group=sex primary=true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; scatterplot x=age2 y=limitsum / yerrorupper=ustderror yerrorlower=lstderror markerattrs=(size=0);&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgrender data=merged template=barlimits; run;
&lt;/P&gt;&lt;/PRE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 20:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20990#M532</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2012-03-05T20:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20991#M533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A more general question is "is a bar chart with a confidence interval a good way to display these data." A discussion of this question is available at &lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2011/10/07/creating-bar-charts-with-confidence-intervals/"&gt;http://blogs.sas.com/content/iml/2011/10/07/creating-bar-charts-with-confidence-intervals/&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 23:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20991#M533</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-03-05T23:40:05Z</dc:date>
    </item>
    <item>
      <title>How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20992#M534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan. The code you sent me worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 05:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20992#M534</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2012-03-08T05:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to put error bars in vertical bars when using subgroup as an option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20993#M535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for answering my query regarding plotting the error bars in vertical bars. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me if there is a way I can specify colors for each bar? I did some Google research but I can't find the solution to it. Does goptions work here too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 21:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-put-error-bars-in-vertical-bars-when-using-subgroup-as-an/m-p/20993#M535</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2012-04-20T21:17:01Z</dc:date>
    </item>
  </channel>
</rss>

