<?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: Labels for median values in a box plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217921#M8137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; I'll give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 00:05:06 GMT</pubDate>
    <dc:creator>aellman</dc:creator>
    <dc:date>2015-04-15T00:05:06Z</dc:date>
    <item>
      <title>Labels for median values in a box plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217918#M8134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created box plots using SAS 9.3 and SGPLOT as below. I would like to label the median values on the graph.&amp;nbsp; Is this possible?&amp;nbsp; I'm flexible on where the labels are - inside the box or to the side is fine.&amp;nbsp; If this isn't possible then, using v 9.3, is it possible to create an axis table for the median values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ODS to output to PDF and HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=analysis_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbox admin_qty_12months/category=year;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis label="Index Year";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis label="Total administrations" grid values = (0 to 100 by 20);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 01:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217918#M8134</guid>
      <dc:creator>aellman</dc:creator>
      <dc:date>2015-04-09T01:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Labels for median values in a box plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217919#M8135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the discrete offset options or the blockplot statment which are explained on the Graphically speaking blog linked below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2011/11/12/graphs-with-axis-aligned-statistics-tables/" title="http://blogs.sas.com/content/graphicallyspeaking/2011/11/12/graphs-with-axis-aligned-statistics-tables/"&gt;http://blogs.sas.com/content/graphicallyspeaking/2011/11/12/graphs-with-axis-aligned-statistics-tables/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/graphicallyspeaking/2011/11/10/it-pays-to-be-discrete/" title="http://blogs.sas.com/content/graphicallyspeaking/2011/11/10/it-pays-to-be-discrete/"&gt;http://blogs.sas.com/content/graphicallyspeaking/2011/11/10/it-pays-to-be-discrete/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although, with these methods and because you want to produce a boxplot you will need to use GTL instead of SGPLOT. You will also need to create a column that contains the median of each year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 13:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217919#M8135</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2015-04-09T13:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Labels for median values in a box plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217920#M8136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SGPLOT VBox does not allow overlays with other plots to add labels.&amp;nbsp; But, with SAS 9.3, your best bet is to use SGANNOTATE to label the median values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With GTL, you have the option to display the statistics below the box plot.&amp;nbsp; You can request only median if you want.&amp;nbsp; Or, you can use Scatterplot with DataLabel and DataLabelPosition to overlay the median value in the graph. Make the markers themselves of size=0. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217920#M8136</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-04-09T17:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Labels for median values in a box plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217921#M8137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; I'll give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 00:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Labels-for-median-values-in-a-box-plot/m-p/217921#M8137</guid>
      <dc:creator>aellman</dc:creator>
      <dc:date>2015-04-15T00:05:06Z</dc:date>
    </item>
  </channel>
</rss>

