<?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 DATALABELS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/680550#M20435</link>
    <description>&lt;P&gt;Sorry for the late response, just got back from a quick break!&lt;/P&gt;&lt;P&gt;I already tried the DATALABELPOS=data option but it did not work for me. It simply places the labels on the right hand-side of the figure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the sample data and the SGPLOT code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data relative_risks;&lt;BR /&gt;input hospital $ RR LCL UCL;&lt;BR /&gt;cards;&lt;BR /&gt;Hosp1 1.00424 0.82114 1.22818&lt;BR /&gt;Hosp2 0.8101 0.6657 0.98582&lt;BR /&gt;Hosp3 0.90292 0.68763 1.1856&lt;BR /&gt;Hosp4 1.06134 0.82583 1.36402&lt;BR /&gt;Hosp5 0.79188 0.56884 1.10237&lt;BR /&gt;Hosp6 0.85667 0.74326 0.98739&lt;BR /&gt;Pooled 0.89249 0.81989 0.97151&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;ods html style=statistical;&lt;BR /&gt;proc sgplot data=relative_risks;&lt;BR /&gt;hbarparm category=hospital response=RR/ limitlower=LCL&lt;BR /&gt;limitupper=UCL&lt;BR /&gt;datalabel&lt;BR /&gt;datalabelpos=DATA;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;ods html close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 20:53:01 GMT</pubDate>
    <dc:creator>Recep</dc:creator>
    <dc:date>2020-08-31T20:53:01Z</dc:date>
    <item>
      <title>PROC SGPLOT DATALABELS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/678579#M20405</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;The following program creates the data labels separate from the graph and places them on the right hand-side. is there any option to put the data labels right on top of each bar (and the ends of each bar for the confidence limits)?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=rr_blunt_penetrating_01;&lt;BR /&gt;hbarparm category=Site response=Log_RR/ limitlower=Log_LCL&lt;BR /&gt;limitupper=Log_UCL&lt;BR /&gt;datalabel;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV class="c"&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/678579#M20405</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2020-08-21T20:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT DATALABELS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/678783#M20406</link>
      <description>&lt;P&gt;add another option to hbarparam, eg&lt;/P&gt;
&lt;P&gt;DATALABELPOS=&lt;SPAN class="xisDoc-choice"&gt;DATA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="xisDoc-choice"&gt;If it does not work please provide sample data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 21:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/678783#M20406</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-08-23T21:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT DATALABELS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/678790#M20408</link>
      <description>&lt;P&gt;Given your use case, you could drop the DATALABEL option and overlay a TEXT plot on top of the HBARPARM. Use the same variables you used for the HBARPARM to place the text values. Use the POSITION option on the TEXt statement to adjust the text position around the data points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 01:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/678790#M20408</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-08-24T01:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT DATALABELS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/680550#M20435</link>
      <description>&lt;P&gt;Sorry for the late response, just got back from a quick break!&lt;/P&gt;&lt;P&gt;I already tried the DATALABELPOS=data option but it did not work for me. It simply places the labels on the right hand-side of the figure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the sample data and the SGPLOT code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data relative_risks;&lt;BR /&gt;input hospital $ RR LCL UCL;&lt;BR /&gt;cards;&lt;BR /&gt;Hosp1 1.00424 0.82114 1.22818&lt;BR /&gt;Hosp2 0.8101 0.6657 0.98582&lt;BR /&gt;Hosp3 0.90292 0.68763 1.1856&lt;BR /&gt;Hosp4 1.06134 0.82583 1.36402&lt;BR /&gt;Hosp5 0.79188 0.56884 1.10237&lt;BR /&gt;Hosp6 0.85667 0.74326 0.98739&lt;BR /&gt;Pooled 0.89249 0.81989 0.97151&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;ods html style=statistical;&lt;BR /&gt;proc sgplot data=relative_risks;&lt;BR /&gt;hbarparm category=hospital response=RR/ limitlower=LCL&lt;BR /&gt;limitupper=UCL&lt;BR /&gt;datalabel&lt;BR /&gt;datalabelpos=DATA;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;ods html close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 20:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/680550#M20435</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2020-08-31T20:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT DATALABELS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/680551#M20436</link>
      <description>&lt;P&gt;Thanks a lot for this Dan! I'll definitely try it. I was hoping to find a straight option but it seems like there is no one within the SGPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 20:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-DATALABELS/m-p/680551#M20436</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2020-08-31T20:54:48Z</dc:date>
    </item>
  </channel>
</rss>

