<?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 Drawing confidence intervals in gplot using annotate in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11552#M183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our SAS is still 9.2, so there is not other way with v9.2 to achieve that? thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 21:11:48 GMT</pubDate>
    <dc:creator>Fisher</dc:creator>
    <dc:date>2012-01-09T21:11:48Z</dc:date>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11544#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Hello all, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;I am trying to draw CI95% on bars in gplot. Does anybody know what I am missing, respectively why does the scritp not produce the CI lines?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Reagrds, Emin&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 186px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15pt; width: 21pt;" width="28"&gt;&lt;A name="RANGE!A1"&gt;Var&lt;/A&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; width: 32pt;" width="43"&gt;Mean&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; width: 43pt;" width="57"&gt;LowerCI&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; width: 44pt;" width="58"&gt;UpperCI&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; width: 21pt;" width="28"&gt;X1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; width: 32pt;" width="43"&gt;1.2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; width: 43pt;" width="57"&gt;0.1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; width: 44pt;" width="58"&gt;4.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; border-top: medium none; width: 21pt;" width="28"&gt;X2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 32pt;" width="43"&gt;1.2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;0.1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 44pt;" width="58"&gt;4.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; border-top: medium none; width: 21pt;" width="28"&gt;X3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 32pt;" width="43"&gt;50.0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;98.7&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 44pt;" width="58"&gt;1.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; border-top: medium none; width: 21pt;" width="28"&gt;X4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 32pt;" width="43"&gt;6.0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;5.0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 44pt;" width="58"&gt;7.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; border-top: medium none; width: 21pt;" width="28"&gt;X5&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 32pt;" width="43"&gt;6.1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;5.0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 44pt;" width="58"&gt;7.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15pt; border-top: medium none; width: 21pt;" width="28"&gt;X6&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 32pt;" width="43"&gt;16.7&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;0.4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none; width: 44pt;" width="58"&gt;64.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt;"&gt;&lt;TD class="xl65" height="21" style="height: 15.75pt; border-top: medium none; width: 21pt;" width="28"&gt;X7&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none; width: 32pt;" width="43"&gt;66.4&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none; width: 43pt;" width="57"&gt;75.2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none; width: 44pt;" width="58"&gt;56.6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno; &lt;/P&gt;&lt;P&gt;&amp;nbsp; length function color $8;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; retain xsys ysys '2' when 'a';&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; set testtest4;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /****/&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move'; xsys='2'; ysys='2'; yc=var; x=0; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='bar'; x=_BIN_; y=+2; ysys='9'; style="solid";output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='bar'; x=0; y=-4; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Draw the horizontal line from lower_limit to upper_limit */&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move'; yc=var; xsys='2'; ysys='2'; x=LowerCI; color='black'; output; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='draw'; x=UpperCI;&amp;nbsp; size=1; output; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Draw the tick line for the lower_limit value&amp;nbsp; */&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move'; xsys='2'; ysys='2'; yc=group; x=LowerCI; color='black'; output;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='draw'; x=LowerCI; y=+1; ysys='9'; size=1; output;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='draw'; x=LowerCI; y=-2; size=1;output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Draw the tick line for the upper_limit value&amp;nbsp;&amp;nbsp;&amp;nbsp; */ &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move'; xsys='2'; ysys='2'; yc=group; x=UpperCI; color='black'; output;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='draw'; x=UpperCI; y=+1; ysys='9'; size=1; output;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function='draw'; x=UpperCI; y=-2; size=1; output;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=testtest4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; plot var*Mean / annotate=anno nolegend;&lt;/P&gt;&lt;P&gt;run; quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11544#M175</guid>
      <dc:creator>emin_ch</dc:creator>
      <dc:date>2011-09-19T12:33:01Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11545#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I just want to point out that the new &lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/62920/HTML/default/viewer.htm#n0p7vdd69sgf3wn1479qxqxuryrt.htm"&gt;SGPLOT procedure &lt;/A&gt;will do most of the computations for you. It's really easy to do this. Point the PROC at the original (unsummarized) data, then submit something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=MyData;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar MyVar / response=MyY stat=mean limitstat=stddev limits=both;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11545#M176</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-09-19T12:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11546#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've made a few tweaks to your code (and your data), and I think the following does what you're wanting...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testtest4;&lt;/P&gt;&lt;P&gt;input Var $ 1-2 Mean&amp;nbsp;&amp;nbsp;&amp;nbsp; LowerCI UpperCI;&lt;BR /&gt;datalines;&lt;BR /&gt;X1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.2&lt;BR /&gt;X2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.2&lt;BR /&gt;X3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.7&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.3&lt;BR /&gt;X4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.3&lt;BR /&gt;X5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.3&lt;BR /&gt;X6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.7&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64.1&lt;BR /&gt;X7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 66.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 55.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 69.6&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno;&lt;BR /&gt;&amp;nbsp; length function color $8;&lt;BR /&gt;&amp;nbsp; retain /*xsys ysys '2'*/ when 'a';&lt;BR /&gt;&amp;nbsp; set testtest4;&lt;BR /&gt;&amp;nbsp; /****/&lt;BR /&gt;&amp;nbsp; /* Draw the horizontal line from lower_limit to upper_limit */&lt;BR /&gt;&amp;nbsp; function='move'; yc=var; xsys='2'; ysys='2'; x=LowerCI; color='black'; output;&lt;BR /&gt;&amp;nbsp; function='draw'; x=UpperCI;&amp;nbsp; size=1; output;&lt;BR /&gt;&amp;nbsp; /* Draw the tick line for the lower_limit value&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; function='move'; xsys='2'; ysys='2'; yc=Var; y=.; x=LowerCI; color='black'; output;&lt;BR /&gt;&amp;nbsp; function='draw'; x=LowerCI; y=+1; ysys='9'; size=1; output;&lt;BR /&gt;&amp;nbsp; function='draw'; x=LowerCI; y=-2; size=1; output;&lt;BR /&gt;&amp;nbsp; /*function=''; output;*/&lt;BR /&gt;&amp;nbsp; /* Draw the tick line for the upper_limit value&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; function='move'; xsys='2'; ysys='2'; yc=Var; y=.; x=UpperCI; color='black'; output;&lt;BR /&gt;&amp;nbsp; function='draw'; x=UpperCI; y=+1; ysys='9'; size=1; output;&lt;BR /&gt;&amp;nbsp; function='draw'; x=UpperCI; y=-2; size=1; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=dot height=1 color=red;&lt;BR /&gt;proc gplot data=testtest4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; plot var*Mean / annotate=anno nolegend;&lt;BR /&gt;run; quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11546#M177</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-09-19T12:56:22Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11547#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Robert. The script work now even with the "bar" function.&lt;/P&gt;&lt;P&gt;Regards, Emin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 07:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11547#M178</guid>
      <dc:creator>emin_ch</dc:creator>
      <dc:date>2011-09-20T07:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11548#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Rick. I have checked the sgplot: a very usefull procedure. I was just not able to use sgplot for my script since my summarized answers came from different equations and denominators. I will keep it in mind for future.&lt;/P&gt;&lt;P&gt;The script corrected by Robert works now properly.&lt;/P&gt;&lt;P&gt;Regards, Emin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 07:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11548#M179</guid>
      <dc:creator>emin_ch</dc:creator>
      <dc:date>2011-09-20T07:29:56Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11549#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;This is a good post. I have a similar question here:&lt;/P&gt;&lt;P&gt;when use sgplot to draw a v bar or h bar, how can I let them to display my cusmizce confidence interval when I use a unique variable? &lt;/P&gt;&lt;P&gt;E.g. &lt;/P&gt;&lt;P&gt;data mydata;&lt;/P&gt;&lt;P&gt;input Var $ 1-2&amp;nbsp; LowerCI UpperCI;&lt;BR /&gt;datalines;&lt;BR /&gt;X1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.2&lt;BR /&gt;X2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.2&lt;BR /&gt;X3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.7&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.3&lt;BR /&gt;X4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.3&lt;BR /&gt;X5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.3&lt;BR /&gt;X6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64.1&lt;BR /&gt;X7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 69.6&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I use proc sgplot to draw v bar using Var only with LowerCI and UpperCI as the ranges of confience interval for each bar? thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 17:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11549#M180</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2012-01-09T17:35:13Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11550#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Support for custom intervals was added to SGPLOT and SGPANEL in SAS 9.3. There are two new statements, VBARPARM and HBARPARM, to draw pre-summarized bar charts. You can set you upper and lower limit variables on these charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 18:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11550#M181</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2012-01-09T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11551#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also be interested in my bars.sas macro, designed for just this purpose.&lt;/P&gt;&lt;P&gt;Available at&lt;/P&gt;&lt;P&gt;http::/datavis.ca/sasmac/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 18:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11551#M182</guid>
      <dc:creator>michael_friendly</dc:creator>
      <dc:date>2012-01-09T18:06:54Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11552#M183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our SAS is still 9.2, so there is not other way with v9.2 to achieve that? thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 21:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11552#M183</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2012-01-09T21:11:48Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11553#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At SAS 9.2, you can use GTL to do create a bar chart with custom error bars by overlaying a SCATTERPLOT with error bars on top of a BARCHART.&amp;nbsp; You can set the marker size for the scatter to zero.&amp;nbsp; See program and graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE lang="sas"&gt;data error;
&amp;nbsp; input Product $&amp;nbsp; Revenue Upper Lower;
&amp;nbsp; datalines;
Desks&amp;nbsp; 2000 2200&amp;nbsp; 1800
Chairs 1500 1700&amp;nbsp; 1300
Lamps&amp;nbsp; 1200 1100&amp;nbsp; 1300
;
run;

proc template;
&amp;nbsp; define statgraph errorbars;
&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; entrytitle 'Product Revenue';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay / yaxisopts=(offsetmin=0) xaxisopts=(display=(ticks tickvalues line));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;barchart x=product y=revenue;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scatterplot x=product y=revenue / yerrorupper=upper yerrorlower=lower markerattrs=(size=0);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout;
&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph;
&amp;nbsp; end;
run;

ods listing;
ods graphics / reset width=5in height=3in imagename='Error';
proc sgrender data=error template=errorbars;
run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.png" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1382_Error.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 21:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11553#M184</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-01-09T21:43:29Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11554#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!!! exactly what I am wanting. &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;&lt;/P&gt;&lt;P&gt;Thanks a lot to Sanjay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 22:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11554#M185</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2012-01-09T22:13:00Z</dc:date>
    </item>
    <item>
      <title>Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11555#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome.&amp;nbsp; You may find more helpful information in &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/"&gt;Graphically Speaking&lt;/A&gt;, a new blog on GTL and SG Procedures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 00:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11555#M186</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-01-10T00:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11556#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really easy with SAS 9.3 where you can just use X=Month, GROUP=Product and GROUPDISPLAY=Cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But I assume you are using SAS 9.2.&amp;nbsp; If you have the M3 maintenence release, you can structure you data as multi-variable, and then overlay the bars as needed.&amp;nbsp; You will need to customize your program and data based on how many groups you have.&amp;nbsp; See example below with three products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MultiError.png" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1394_MultiError.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE lang="sas"&gt;data MultiErrorMonth;
&amp;nbsp; input Month $&amp;nbsp; Revenue1 Upper1 Lower1 Revenue2 Upper2 Lower2 Revenue3 Upper3 Lower3;
&amp;nbsp; datalines;
Jan&amp;nbsp; 2000&amp;nbsp; 2200&amp;nbsp; 1800 1500 1700&amp;nbsp; 1300&amp;nbsp; 1200 1300 1100&amp;nbsp; 
Feb&amp;nbsp; 2200&amp;nbsp; 2400&amp;nbsp; 1900 1200 1400&amp;nbsp; 1300&amp;nbsp; 1300 1400 1100&amp;nbsp; 
;
run;

ods listing;
proc print;run;

proc template;
&amp;nbsp; define statgraph MultiError;
&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; entrytitle 'Clustered Bars with Confidence Intervals';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay /&amp;nbsp; xaxisopts=(offsetmin=0.25 offsetmax=0.25 display=(ticks tickvalues)) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxisopts=(label='Revenue' griddisplay=on) cycleattrs=true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; barchartparm x=month y=revenue1 / errorupper=upper1 errorlower=lower1 skin=modern 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discreteoffset=-0.3 barwidth=0.3 name='Desks' legendlabel='Desks';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; barchartparm x=month y=revenue2 / errorupper=upper2 errorlower=lower2 skin=modern 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discreteoffset=-0.0 barwidth=0.3 name='Chairs' legendlabel='Chairs';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; barchartparm x=month y=revenue3 / errorupper=upper3 errorlower=lower3 skin=modern 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discreteoffset=0.3 barwidth=0.3 name='Lamps' legendlabel='Lamps';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;discretelegend 'Desks' 'Chairs' 'Lamps';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endgraph;
&amp;nbsp; end;
run;

ods listing;
ods graphics / reset width=500px height=300px imagename='MultiError';
proc sgrender data=MultiErrorMonth template=MultiError;
run;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 15:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11556#M187</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-01-13T15:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11557#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sanjay. But my data structure is like what I posted in my question. If I know how many groups but don't want to transpose the data to your format, is there any ways to do this? I mean just use the data I posted to produce the same graph. In addition, I don't want to 'hard code' the item names in legend, but use the values in the dataset. &lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 15:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11557#M188</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2012-01-13T15:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11558#M189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, with SAS 9.3 (see options mentioned).&amp;nbsp; Not with SAS 9.2&amp;nbsp; SG procs or GTL.&amp;nbsp; You could use proc gchart and annotate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 15:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/11558#M189</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-01-13T15:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing confidence intervals in gplot using annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/369546#M12792</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried Robert's&amp;nbsp;Confidence Interval code(posted on this link: &lt;A href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/Drawing-confidence-intervals-in-gplot-using-annotate/td-p/11544" target="_blank"&gt;https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/Drawing-confidence-intervals-in-gplot-using-annotate/td-p/11544&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on my code to get the confidence bands on GPLOT but these are not working because there are&amp;nbsp;some Y axis / Y axis changes that are required(according to robert).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you please help me out with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I have one more general question. I have to plot 3 variables in scatter plot all on the same Y axis but 2 of them would have confidence bands. Is that possible ? If yes, then does anyone have such a code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on SAS Enterprise Guide(7.1)&lt;BR /&gt;&lt;BR /&gt;Here is the code:&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9649i146950A9EC71AF44/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="ready_graph_without_conf_bands.png" title="ready_graph_without_conf_bands.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;                                                                                                                                
   input ACCOUNT$ POST_QUOTES PRE_ACTUAL PRE_ERROR POST_ACTUAL POST_ERROR POST_ESTIMATE ;                                                                                                               
   datalines;                                                                                                                          
N 389 1546 30 1695 98 1648
Y 547 1177 16 1098 53 1166
;     
 
 
run;
 
data a(drop= post_error pre_error);
                set a;
 
LOWERCI_PRE = PRE_ACTUAL-PRE_ERROR;
UPPERCI_PRE = PRE_ACTUAL+PRE_ERROR;
 
LOWERCI_POST = POST_ACTUAL-POST_ERROR;
UPPERCI_POST = POST_ACTUAL+POST_ERROR;
run;
 
symbol1 value=none INTERPOL=needle color=gray  width=50 ;
 
symbol2 height=0.17 in value=dot color=black INTERPOL=none l=1;
 
symbol3 height=0.17 in value=CIRCLE color=DARKRED INTERPOL=none l=1;
 
symbol4 height=0.17 in value=circlefilled color=DARKRED INTERPOL=none l=1;
 
axis1 label=(height=0.17 in f=triplex "Account credit") value=(height=0.135 in
f=triplex) offset=(25);
 
axis2 label=(height=0.17 in a=90 f=triplex "Estimates") minor=none order=(1000
to 1800 by 100) offset=(5 pct) value=(height=0.135 in f=triplex);
 
axis3 label=(height=0.17 in a=270 f=triplex "Volume") minor=none
order=(10 to 1000 by 100) offset=(5 pct) value=(height=0.135 in f=triplex);
 
data anno_pre;
  length function color $8;
  retain /*xsys ysys '2'*/ when 'a';
  set A;
  /****/
  /* Draw the horizontal line from lower_limit to upper_limit */
  function='move'; yc=PRE_ACTUAL; xsys='2'; ysys='2'; x=LOWERCI_PRE; color='red'; output;
  function='draw'; x=UPPERCI_PRE;  size=1; output;
  /* Draw the tick line for the lower_limit value  */
  function='move'; xsys='2'; ysys='2'; yc=PRE_ACTUAL; y=.; x=LOWERCI_PRE; color='red'; output;
  function='draw'; x=LOWERCI_PRE; y=+1; ysys='9'; size=1; output;
  function='draw'; x=LOWERCI_PRE; y=-2; size=1; output;
  /*function=''; output;*/
  /* Draw the tick line for the upper_limit value    */
  function='move'; xsys='2'; ysys='2'; yc=PRE_ACTUAL; y=.; x=UPPERCI_PRE; color='red'; output;
  function='draw'; x=UPPERCI_PRE; y=+1; ysys='9'; size=1; output;
  function='draw'; x=UPPERCI_PRE; y=-2; size=1; output;
run;
 
data anno_post;
  length function color $8;
  retain /*xsys ysys '2'*/ when 'a';
  set A;
  /****/
  /* Draw the horizontal line from lower_limit to upper_limit */
  function='move'; yc=post_ACTUAL; xsys='2'; ysys='2'; x=LOWERCI_post; color='orange'; output;
  function='draw'; x=UPPERCI_post;  size=1; output;
  /* Draw the tick line for the lower_limit value  */
  function='move'; xsys='2'; ysys='2'; yc=post_ACTUAL; y=.; x=LOWERCI_post; color='orange'; output;
  function='draw'; x=LOWERCI_post; y=+1; ysys='9'; size=1; output;
  function='draw'; x=LOWERCI_post; y=-2; size=1; output;
  /*function=''; output;*/
  /* Draw the tick line for the upper_limit value    */
  function='move'; xsys='2'; ysys='2'; yc=post_ACTUAL; y=.; x=UPPERCI_post; color='orange'; output;
  function='draw'; x=UPPERCI_post; y=+1; ysys='9'; size=1; output;
  function='draw'; x=UPPERCI_post; y=-2; size=1; output;
run;
 
 
proc gplot data=a;
plot POST_QUOTES*Account/ overlay noframe nolegend haxis=axis1 vaxis=axis3;
plot2 (Pre_Actual ) *Account / annotate=anno_pre overlay noframe nolegend haxis=axis1 vaxis=axis2;
 
 
title1 h=0.17 in f=triplex "THE GRAPHICAL DISPLAY:";
title3 h=0.17 in f=triplex "Post Quotes as bar , Pre Actual , Post Actual and Post Estimated as Scatter Plots";
 
footnote1 j=c h=0.15 in f=triplex "Legends will go here";
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Drawing-confidence-intervals-in-gplot-using-annotate/m-p/369546#M12792</guid>
      <dc:creator>niteshbibra</dc:creator>
      <dc:date>2017-06-22T15:10:13Z</dc:date>
    </item>
  </channel>
</rss>

