<?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 SGPLOT: Create Error Bars  in Stacked VBar Graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828250#M23089</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input trt$ agegrp$ response $ 6-23 orr omean lowerclm upperclm;
cards;
X a  Complete Response 28 33 52.1 64.2
X b  Complete Response 23 25 40.4 52.1
Y a  Partial Response  24 27 . .
Y b  Partial Response  17 19 . .
;
run;
proc sort data= have; by trt; run;


 title 'Figure 8 data-  sgplot- bargraph plot';
PROC  sgplot data=have;
 vbarparm category=agegrp response=omean /  group=response ;
highlow x=agegrp  low=lowerclm high=upperclm/ HIGHCAP=SERIF LOWCAP=SERIF lineattrs=(color=black);
run;



data have2;
input trt$ agegrp$ response $ 6-23 orr omean lowerclm upperclm;
cards;
X a  Complete Response 28 33 22.1 34.2
X b  Complete Response 23 25 20.4 32.1
Y a  Partial Response  24 27 25 30
Y b  Partial Response  17 19 12 22
;
run;
PROC  sgpanel data=have2 ;
 panelby trt / layout=columnlattice colheaderpos=bottom  spacing=0 noborder ;
 vbarparm category=agegrp response=omean /  group=response ;
 highlow x=agegrp  low=lowerclm high=upperclm/ HIGHCAP=SERIF LOWCAP=SERIF lineattrs=(color=black);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1660218498287.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74352i9013430FB9B7C03F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1660218498287.png" alt="Ksharp_0-1660218498287.png" /&gt;&lt;/span&gt;&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="Ksharp_1-1660218509149.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74353iC73B07D4ACF162C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1660218509149.png" alt="Ksharp_1-1660218509149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 11:48:27 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-08-11T11:48:27Z</dc:date>
    <item>
      <title>PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828195#M23086</link>
      <description>&lt;P&gt;Hi Everyone, I came across the following paper to create the bar graph with error bars which have the use for me.&amp;nbsp; Unfortunately when I tried the code, it throwing &lt;FONT color="#0000FF"&gt;note that error bares are supressed... ( Please see the log image).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Reference of the Article:&amp;nbsp;&lt;FONT color="#000000"&gt;&lt;A href="https://www.lexjansen.com/pharmasug-cn/2019/DV/Pharmasug-China-2019-DV85.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug-cn/2019/DV/Pharmasug-China-2019-DV85.pdf&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Figure 3&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1660173298336.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74339i28B69203E69D2124/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1660173298336.png" alt="SASuserlot_0-1660173298336.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_1-1660173343821.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74340i7B17101F90630DBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_1-1660173343821.png" alt="SASuserlot_1-1660173343821.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1. How to create the stack graph&amp;nbsp; similar to the graph? I am producing the graph like below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_3-1660173841199.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74342iF961E31902B2CB92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_3-1660173841199.png" alt="SASuserlot_3-1660173841199.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. How to avoid the&amp;nbsp; line between two panels (highlighted in the image below).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_2-1660173790557.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74341iE3126D14984DA8E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_2-1660173790557.png" alt="SASuserlot_2-1660173790557.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input trt$ agegrp$ response $ 6-25 orr omean lowerclm	upperclm;
cards;
X a  Complete Response 28 33 32.1 34.2
X a  Complete Response 9  33 32.4 34.2
X b  Complete Response 23 25 22.4 28.1
X b  Complete Response 3  25 22.4 28.1
Y a  Partial Response  24 27 24.2 30.4
Y a  Partial Response  4  27 24.2 30.4
Y b  Partial Response  17 19 18.1 22.5
Y b  Partial Response  1  19 18.1 22.5
;
run;

title '';
 title 'Figure 8 data-  sgplot- bargraph plot';
 ods html;
PROC  sgplot data=have;
 *panelby trt / layout=columnlattice colheaderpos=bottom;
 vbarparm category=agegrp response=omean /  group=response limitlower=lowerclm
 limitupper=upperclm;
run;

PROC  sgpanel data=have;
 panelby trt / layout=columnlattice colheaderpos=bottom;
 vbarparm category=agegrp response=omean /  group=response limitlower=lowerclm
 limitupper=upperclm;
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 23:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828195#M23086</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-10T23:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828199#M23087</link>
      <description>&lt;P&gt;First bit your data step. The data for orr starts in column 24 so all sorts of problems read column 6 to 23 with the data as pasted.&lt;/P&gt;
&lt;PRE&gt;213  data have;
214  input trt$ agegrp$ response $ 6-25 orr omean lowerclm upperclm;
215  cards;

NOTE: Invalid data for upperclm in line 217 1-1.
RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+--
217        X a  Complete Response 9  33 32.4 34.2
trt=X agegrp=a response=Complete Response 28 orr=33 omean=32.1 lowerclm=34.2 upperclm=. _ERROR_=1
_N_=1
NOTE: Invalid data for upperclm in line 219 1-1.
219        X b  Complete Response 3  25 22.4 28.1
trt=X agegrp=b response=Complete Response 23 orr=25 omean=22.4 lowerclm=28.1 upperclm=. _ERROR_=1
_N_=2
NOTE: Invalid data for upperclm in line 221 1-1.
221        Y a  Partial Response  4  27 24.2 30.4
trt=Y agegrp=a response=Partial Response  24 orr=27 omean=24.2 lowerclm=30.4 upperclm=. _ERROR_=1
_N_=3
NOTE: Invalid data for upperclm in line 223 1-1.
223        Y b  Partial Response  1  19 18.1 22.5
trt=Y agegrp=b response=Partial Response  17 orr=19 omean=18.1 lowerclm=22.5 upperclm=. _ERROR_=1
_N_=4
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.HAVE has 4 observations and 7 variables.
&lt;/PRE&gt;
&lt;P&gt;Next sgpanel throws this:&lt;/P&gt;
&lt;PRE&gt;ERROR: The sort order of the data set cannot be validated.  Please sort your data.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SGPANEL used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;After sorting by TRT to allow the Panelby we all sorts of the data is not proper.&lt;/P&gt;
&lt;PRE&gt;274  PROC  sgpanel data=have;
275   panelby trt / layout=columnlattice colheaderpos=bottom
276    noborder;
277   vbarparm category=agegrp response=omean /  group=response limitlower=lowerclm
278   limitupper=upperclm;
279  run;

NOTE: PROCEDURE SGPANEL used (Total process time):
      real time           0.26 seconds
      cpu time            0.04 seconds

NOTE: Error bars are suppressed when the GROUPDISPLAY=STACK or GROUP100=POSITIVE|MAGNITUDE option
      is used.
NOTE: Error bars are suppressed when the GROUPDISPLAY=STACK or GROUP100=POSITIVE|MAGNITUDE option
      is used.
WARNING: The data for a BARCHARTPARM statement are not appropriate. The BARCHARTPARM statement
         expects summarized data. The bar chart might not be drawn correctly.
NOTE: Error bars are suppressed when the GROUPDISPLAY=STACK or GROUP100=POSITIVE|MAGNITUDE option
      is used.
NOTE: Error bars are suppressed when the GROUPDISPLAY=STACK or GROUP100=POSITIVE|MAGNITUDE option
      is used.
WARNING: The data for a BARCHARTPARM statement are not appropriate. The BARCHARTPARM statement
         expects summarized data. The bar chart might not be drawn correctly.
NOTE: There were 8 observations read from the data set WORK.HAVE.

&lt;/PRE&gt;
&lt;P&gt;The article you referenced has this bit of code to use VBARPARM:&lt;/P&gt;
&lt;PRE&gt;PROC MEANS data=bardata1 mean lclm uclm;
   class trt;
   var orr;
    output out=bardata2 mean=orrmean lclm=lowerclm uclm=upperclm;
run;&lt;/PRE&gt;
&lt;P&gt;But their code Plots Bardata3, which seems to be missing for how it may have been built and uses an option Panelby with SGPLOT that is not documented: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/p1t32i8511t1gfn17sw07yxtazad.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/p1t32i8511t1gfn17sw07yxtazad.htm&lt;/A&gt; as a reference.&lt;/P&gt;
&lt;P&gt;So I am fairly sure that the code in that document did not generate the graph shown. So I suspect that perhaps a GTL (Graph Template Language) approach may have been involved or an annotate set or possibly create a graph with VBARBASIC and used another plot to over the desired error bar image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default for Groupdisplay with any of the Vbar, Vbarparm, Hbar, Hbarparm is stack. So you can try groupdisplay = cluster which places things side by side and would allow the error bars PER bar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 01:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828199#M23087</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-11T01:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828201#M23088</link>
      <description>&lt;P&gt;Apologies for wrong code for dataset creation. I believe I forgot to change the&amp;nbsp; input response length ( reading 6-23) after modifying the trt varaible (length to $1). I corrected that. From your explanation can I conclude to the following.&lt;/P&gt;
&lt;P&gt;1. There is no way we can have the error bars on the stacked VBARS graph using SGPLOT or PANEL.&lt;/P&gt;
&lt;P&gt;2. I see the code SGPLOT in the paper which have the PANEL statement. I think SGPLOT can't&amp;nbsp; have panel statement ! correct me if I am wrong.&lt;/P&gt;
&lt;P&gt;Thank you for your time and explanation. I will try for the GTL approach.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*corrected code for dataset creation;
data have;
input trt$ agegrp$ response $ 6-23 orr omean lowerclm	upperclm;
cards;
X a  Complete Response 28 33 32.1 34.2
X a  Complete Response 9  33 32.4 34.2
X b  Complete Response 23 25 22.4 28.1
X b  Complete Response 3  25 22.4 28.1
Y a  Partial Response  24 27 24.2 30.4
Y a  Partial Response  4  27 24.2 30.4
Y b  Partial Response  17 19 18.1 22.5
Y b  Partial Response  1  19 18.1 22.5
;
run;

proc sort data= have; by trt; run&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 01:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828201#M23088</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-11T01:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828250#M23089</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input trt$ agegrp$ response $ 6-23 orr omean lowerclm upperclm;
cards;
X a  Complete Response 28 33 52.1 64.2
X b  Complete Response 23 25 40.4 52.1
Y a  Partial Response  24 27 . .
Y b  Partial Response  17 19 . .
;
run;
proc sort data= have; by trt; run;


 title 'Figure 8 data-  sgplot- bargraph plot';
PROC  sgplot data=have;
 vbarparm category=agegrp response=omean /  group=response ;
highlow x=agegrp  low=lowerclm high=upperclm/ HIGHCAP=SERIF LOWCAP=SERIF lineattrs=(color=black);
run;



data have2;
input trt$ agegrp$ response $ 6-23 orr omean lowerclm upperclm;
cards;
X a  Complete Response 28 33 22.1 34.2
X b  Complete Response 23 25 20.4 32.1
Y a  Partial Response  24 27 25 30
Y b  Partial Response  17 19 12 22
;
run;
PROC  sgpanel data=have2 ;
 panelby trt / layout=columnlattice colheaderpos=bottom  spacing=0 noborder ;
 vbarparm category=agegrp response=omean /  group=response ;
 highlow x=agegrp  low=lowerclm high=upperclm/ HIGHCAP=SERIF LOWCAP=SERIF lineattrs=(color=black);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1660218498287.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74352i9013430FB9B7C03F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1660218498287.png" alt="Ksharp_0-1660218498287.png" /&gt;&lt;/span&gt;&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="Ksharp_1-1660218509149.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74353iC73B07D4ACF162C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1660218509149.png" alt="Ksharp_1-1660218509149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 11:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828250#M23089</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-11T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828279#M23090</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp; for your solution. There is slight change in the data. I am attaching the data code. I am looking how I can Stack the bars on top of each other&amp;nbsp; and have the treatments in two panels like &lt;STRONG&gt;&lt;FONT color="#339966"&gt;Reference Image in green bars&lt;/FONT&gt;&lt;/STRONG&gt; . With the new data I am looking to get Red Bar of&amp;nbsp; &amp;nbsp;'Partial response' and have the error bars have to be stacked over the 'Complete response' blue color Bar but I am getting side by side. PS: We have the flexibility to modify the data as per out requirement like how you did it&amp;nbsp; for ' hhave2' dataset.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Graph I am getting with new Data:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1660226479545.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74356i9924F5C39FA4B661/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1660226479545.png" alt="SASuserlot_0-1660226479545.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Reference Image:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_1-1660226617222.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74357iDEF5D1FC851B8F22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_1-1660226617222.png" alt="SASuserlot_1-1660226617222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*New Dataset code;
data have;
input trt$ agegrp$ response $ 6-23 orr omean lowerclm	upperclm;
cards;
X a  Complete Response 28 33 32.1 34.2
X a  Partial Response  9 33 32.4 34.2
X b  Complete Response 23 25 22.4 28.1
X b  Partial Response  3 25 22.4 28.1
Y a  Complete Response 24 27 24.2 30.4
Y a  Partial Response  4 27 24.2 30.4
Y b  Complete Response 17 19 18.1 22.5
Y b  Partial Response  1 19 18.1 22.5
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 14:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828279#M23090</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-11T14:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828436#M23091</link>
      <description>&lt;P&gt;OK. How about this one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input trt$ agegrp$ response $ 6-23 orr omean lowerclm upperclm;
cards;
X a  Complete Response 28 33 60.1 74.2
X a  Partial Response  9 33 . .
X b  Complete Response 23 25 42.4 58.1
X b  Partial Response  3 25 . .
Y a  Complete Response 24 27 44.2 58.4
Y a  Partial Response  4 27 . .
Y b  Complete Response 17 19 34.1 46.5
Y b  Partial Response  1 19 . .
;
run;

PROC  sgpanel data=have ;
styleattrs datacolors=(green white) datacontrastcolors=(green grey);
 panelby trt / layout=columnlattice colheaderpos=bottom  spacing=0 noborder novarname ;
 vbarparm category=agegrp response=omean /  group=response groupdisplay=stack fillpattern;
 highlow x=agegrp  low=lowerclm high=upperclm/ HIGHCAP=SERIF LOWCAP=SERIF lineattrs=(color=black);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1660304764632.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74393i6B64C0716B8D5168/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1660304764632.png" alt="Ksharp_0-1660304764632.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828436#M23091</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-12T11:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828443#M23092</link>
      <description>&lt;P&gt;This looks perfect. Thank you. Just quick question for my knowledge purpose. I see a new dataset '_sgsrt2_' creating with one extra variable .. when I run the SGPANEL code even though there is no 'out' option, why? I am using your exact code.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1660309378047.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74395iDCA275247C45B426/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1660309378047.png" alt="SASuserlot_0-1660309378047.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 13:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828443#M23092</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-08-12T13:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Create Error Bars  in Stacked VBar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828601#M23093</link>
      <description>I don't know . It is nothing you should worry about.&lt;BR /&gt;As far as I know ,It is just a temporary file generated by SAS for PROC SGPANEL .</description>
      <pubDate>Sun, 14 Aug 2022 09:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-Create-Error-Bars-in-Stacked-VBar-Graph/m-p/828601#M23093</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-14T09:56:41Z</dc:date>
    </item>
  </channel>
</rss>

