<?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: Need a boxplot guru.... in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Need-a-boxplot-guru/m-p/126441#M4905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To gain full control of the reference lines and their text labels, I would recommend annotating them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some code you could use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let uln=68;&lt;BR /&gt;%let lln=55;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno_ref;&lt;BR /&gt;length function $8;&lt;BR /&gt;xsys='1'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;y=&amp;amp;uln;&lt;BR /&gt;x=1; function='move'; output;&lt;BR /&gt;x=100; function='draw'; size=.001; color='red'; output;&lt;BR /&gt;x=3; function='label'; position='3'; size=.; color='red'; text="&amp;amp;uln"; output;&lt;BR /&gt;y=&amp;amp;lln;&lt;BR /&gt;x=1; function='move'; output;&lt;BR /&gt;x=100; function='draw'; size=.001; color='red'; output;&lt;BR /&gt;x=3; function='label'; position='9'; size=.; color='red'; text="&amp;amp;lln"; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=sashelp.class anno=anno_ref;&lt;BR /&gt;plot height*weight;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="foo.png" class="jive-image-thumbnail jive-image" height="439" src="https://communities.sas.com/legacyfs/online/3923_foo.png" width="690" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jul 2013 13:16:15 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2013-07-18T13:16:15Z</dc:date>
    <item>
      <title>Need a boxplot guru....</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-a-boxplot-guru/m-p/126440#M4904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a number of boxplots for lab analytes.&amp;nbsp; They include VREF lines for upper limit of normal (ULN) and lower limit of normal (LLN).&amp;nbsp; My statistician asked me to bring the lines to the foreground, which I did with FRONTREF.&amp;nbsp; But this caused a problem with the positioning of the labels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The y-axis has to have enough range to include outliers, so in a few cases, the ULN and LLN lines are physically pretty close on the graph.&amp;nbsp; When this happens, the text "ULN" is positioned below its line, and the text "LLN" is positioned above its line--in some cases, overlapping each other.&amp;nbsp; In graphs where the two VREFs are farther apart, "ULN" prints above its line and "LLN" prints below its line--which is what I want for all of them.&amp;nbsp; The actual proc boxplot code is in a macro, so there are no changes to the options among analytes, so I'm not sure why the VREF labels are inconsistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ULN&lt;/P&gt;&lt;P&gt;________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;________________________________&lt;/P&gt;&lt;P&gt;LLN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm getting in some cases:&lt;/P&gt;&lt;P&gt;____________________________&lt;/P&gt;&lt;P&gt;ULN&lt;/P&gt;&lt;P&gt;LLN&lt;/P&gt;&lt;P&gt;____________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to force VREF labels to print above/below the VREF line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Suzy G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 00:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-a-boxplot-guru/m-p/126440#M4904</guid>
      <dc:creator>SuzyG_</dc:creator>
      <dc:date>2013-07-04T00:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need a boxplot guru....</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-a-boxplot-guru/m-p/126441#M4905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To gain full control of the reference lines and their text labels, I would recommend annotating them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some code you could use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let uln=68;&lt;BR /&gt;%let lln=55;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno_ref;&lt;BR /&gt;length function $8;&lt;BR /&gt;xsys='1'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;y=&amp;amp;uln;&lt;BR /&gt;x=1; function='move'; output;&lt;BR /&gt;x=100; function='draw'; size=.001; color='red'; output;&lt;BR /&gt;x=3; function='label'; position='3'; size=.; color='red'; text="&amp;amp;uln"; output;&lt;BR /&gt;y=&amp;amp;lln;&lt;BR /&gt;x=1; function='move'; output;&lt;BR /&gt;x=100; function='draw'; size=.001; color='red'; output;&lt;BR /&gt;x=3; function='label'; position='9'; size=.; color='red'; text="&amp;amp;lln"; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=sashelp.class anno=anno_ref;&lt;BR /&gt;plot height*weight;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="foo.png" class="jive-image-thumbnail jive-image" height="439" src="https://communities.sas.com/legacyfs/online/3923_foo.png" width="690" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 13:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-a-boxplot-guru/m-p/126441#M4905</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-07-18T13:16:15Z</dc:date>
    </item>
  </channel>
</rss>

