<?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 do I put text above error bars in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-put-text-above-error-bars-in-SGPLOT/m-p/531783#M17733</link>
    <description>&lt;P&gt;I've seen a few posts along these lines but have yet to figure this out. I've don'e an analysis on differences between cropping systems and just want to graph the data (mean, stderr) and indicated significantly different systems using LSD-like categories. I'm using the limitstat=sterr to get my error bars and have seen that I can use datalabel= to get labels but it appears to be one or the other.&lt;/P&gt;&lt;P&gt;Is there an easy way to get both of these in the graph, without having the data labels appear below the bars (see attached fig). My code is below, thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data dlabel;&lt;BR /&gt;set stab_graph;&lt;BR /&gt;if (system eq 'CC') then dlabel="C";&lt;BR /&gt;if (system eq 'CS') then dlabel="B";&lt;BR /&gt;if (system eq 'CSW') then dlabel="C";&lt;BR /&gt;if (system eq 'CAAA') then dlabel="A";&lt;BR /&gt;if (system eq 'CoAA') then dlabel="B/C";&lt;BR /&gt;if (system eq 'PAST') then dlabel="B";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=dlabel noautolegend;&lt;BR /&gt;title 'Cropping System Stability: 1993 - 2018';&lt;BR /&gt;vbar system / response=stability&lt;BR /&gt;stat=mean&lt;BR /&gt;limitstat=stderr&lt;BR /&gt;datalable=dlabel;&lt;BR /&gt;xaxis type=discrete values=('CC' 'CS' 'CSW' 'CAAA' 'CoAA' 'PAST');&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2019 19:57:06 GMT</pubDate>
    <dc:creator>grsanford</dc:creator>
    <dc:date>2019-01-31T19:57:06Z</dc:date>
    <item>
      <title>How do I put text above error bars in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-put-text-above-error-bars-in-SGPLOT/m-p/531783#M17733</link>
      <description>&lt;P&gt;I've seen a few posts along these lines but have yet to figure this out. I've don'e an analysis on differences between cropping systems and just want to graph the data (mean, stderr) and indicated significantly different systems using LSD-like categories. I'm using the limitstat=sterr to get my error bars and have seen that I can use datalabel= to get labels but it appears to be one or the other.&lt;/P&gt;&lt;P&gt;Is there an easy way to get both of these in the graph, without having the data labels appear below the bars (see attached fig). My code is below, thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data dlabel;&lt;BR /&gt;set stab_graph;&lt;BR /&gt;if (system eq 'CC') then dlabel="C";&lt;BR /&gt;if (system eq 'CS') then dlabel="B";&lt;BR /&gt;if (system eq 'CSW') then dlabel="C";&lt;BR /&gt;if (system eq 'CAAA') then dlabel="A";&lt;BR /&gt;if (system eq 'CoAA') then dlabel="B/C";&lt;BR /&gt;if (system eq 'PAST') then dlabel="B";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=dlabel noautolegend;&lt;BR /&gt;title 'Cropping System Stability: 1993 - 2018';&lt;BR /&gt;vbar system / response=stability&lt;BR /&gt;stat=mean&lt;BR /&gt;limitstat=stderr&lt;BR /&gt;datalable=dlabel;&lt;BR /&gt;xaxis type=discrete values=('CC' 'CS' 'CSW' 'CAAA' 'CoAA' 'PAST');&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-put-text-above-error-bars-in-SGPLOT/m-p/531783#M17733</guid>
      <dc:creator>grsanford</dc:creator>
      <dc:date>2019-01-31T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I put text above error bars in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-put-text-above-error-bars-in-SGPLOT/m-p/531803#M17736</link>
      <description>&lt;P&gt;And you just want the dlabel values to be on tup of the upper limit, correct? You do not want the actual lower/upper numeric values in the plot as I understand it?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-put-text-above-error-bars-in-SGPLOT/m-p/531803#M17736</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-31T20:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I put text above error bars in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-put-text-above-error-bars-in-SGPLOT/m-p/531806#M17737</link>
      <description>&lt;P&gt;That is correct.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-put-text-above-error-bars-in-SGPLOT/m-p/531806#M17737</guid>
      <dc:creator>grsanford</dc:creator>
      <dc:date>2019-01-31T20:38:36Z</dc:date>
    </item>
  </channel>
</rss>

