<?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: How to add letters on top of error bars in SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-letters-on-top-of-error-bars-in-SGPLOT/m-p/844419#M333829</link>
    <description>&lt;P&gt;Try using a TEXT statement instead of datalabel and provide the x/y location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0lprj1bdrlrkgn1vmqnd7r6fnry.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0lprj1bdrlrkgn1vmqnd7r6fnry.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/307638"&gt;@mcknigh3&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am having difficulty adding significance letters to the tops of the bars in Proc sgplot. I have error bars shown too and everything I've read says I can't have both error bars and letter. Is this true? The letters appear on the graph but not where I'd like them to be. Here's my code and data attached:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sgplot data=LSMSPwk1interact noborder;&lt;BR /&gt;vbarparm category=Treatment response=Estimate / limitlower=limitlower limitupper=limitupper limitattrs=(color=black Thickness=1.75)&lt;BR /&gt;group=Foragetype groupdisplay=cluster fill barwidth=0.85 datalabel=Sigletter datalabelpos=top&lt;BR /&gt;datalabelattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;styleattrs datacolors=(dagrybr bgr grybr);&lt;BR /&gt;xaxis Label= 'Treatment' labelattrs=(color=black Family="Times New Roman" Size=12) valueattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;yaxis min=-2 max=100 grid Label= 'Proportion (%)' labelattrs=(color=black Family="Times New Roman" Size=12)&lt;BR /&gt;valueattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;keylegend / title="" position=top noborder valueattrs=(color=black Family="Times New Roman" Size=12)&lt;BR /&gt;titleattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;Run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 16:56:13 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-11-15T16:56:13Z</dc:date>
    <item>
      <title>How to add letters on top of error bars in SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-letters-on-top-of-error-bars-in-SGPLOT/m-p/844018#M333680</link>
      <description>&lt;P&gt;I am having difficulty adding significance letters to the tops of the bars in Proc sgplot. I have error bars shown too and everything I've read says I can't have both error bars and letter. Is this true? The letters appear on the graph but not where I'd like them to be. Here's my code and data attached:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sgplot data=LSMSPwk1interact noborder;&lt;BR /&gt;vbarparm category=Treatment response=Estimate / limitlower=limitlower limitupper=limitupper limitattrs=(color=black Thickness=1.75)&lt;BR /&gt;group=Foragetype groupdisplay=cluster fill barwidth=0.85 datalabel=Sigletter datalabelpos=top&lt;BR /&gt;datalabelattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;styleattrs datacolors=(dagrybr bgr grybr);&lt;BR /&gt;xaxis Label= 'Treatment' labelattrs=(color=black Family="Times New Roman" Size=12) valueattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;yaxis min=-2 max=100 grid Label= 'Proportion (%)' labelattrs=(color=black Family="Times New Roman" Size=12)&lt;BR /&gt;valueattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;keylegend / title="" position=top noborder valueattrs=(color=black Family="Times New Roman" Size=12)&lt;BR /&gt;titleattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;Run;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 18:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-letters-on-top-of-error-bars-in-SGPLOT/m-p/844018#M333680</guid>
      <dc:creator>mcknigh3</dc:creator>
      <dc:date>2022-11-13T18:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to add letters on top of error bars in SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-letters-on-top-of-error-bars-in-SGPLOT/m-p/844419#M333829</link>
      <description>&lt;P&gt;Try using a TEXT statement instead of datalabel and provide the x/y location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0lprj1bdrlrkgn1vmqnd7r6fnry.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0lprj1bdrlrkgn1vmqnd7r6fnry.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/307638"&gt;@mcknigh3&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am having difficulty adding significance letters to the tops of the bars in Proc sgplot. I have error bars shown too and everything I've read says I can't have both error bars and letter. Is this true? The letters appear on the graph but not where I'd like them to be. Here's my code and data attached:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sgplot data=LSMSPwk1interact noborder;&lt;BR /&gt;vbarparm category=Treatment response=Estimate / limitlower=limitlower limitupper=limitupper limitattrs=(color=black Thickness=1.75)&lt;BR /&gt;group=Foragetype groupdisplay=cluster fill barwidth=0.85 datalabel=Sigletter datalabelpos=top&lt;BR /&gt;datalabelattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;styleattrs datacolors=(dagrybr bgr grybr);&lt;BR /&gt;xaxis Label= 'Treatment' labelattrs=(color=black Family="Times New Roman" Size=12) valueattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;yaxis min=-2 max=100 grid Label= 'Proportion (%)' labelattrs=(color=black Family="Times New Roman" Size=12)&lt;BR /&gt;valueattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;keylegend / title="" position=top noborder valueattrs=(color=black Family="Times New Roman" Size=12)&lt;BR /&gt;titleattrs=(color=black Family="Times New Roman" Size=12);&lt;BR /&gt;Run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 16:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-letters-on-top-of-error-bars-in-SGPLOT/m-p/844419#M333829</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-11-15T16:56:13Z</dc:date>
    </item>
  </channel>
</rss>

