<?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: SGPLOT include reflines in y-axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-include-reflines-in-y-axis/m-p/629040#M19547</link>
    <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Somehow, yesterday I didn't find this statement&amp;nbsp;&lt;img id="robotembarrassed" class="emoticon emoticon-robotembarrassed" src="https://communities.sas.com/i/smilies/16x16_robot-embarrassed.png" alt="Robot Embarassed" title="Robot Embarassed" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2020 07:55:05 GMT</pubDate>
    <dc:creator>Magdal3na</dc:creator>
    <dc:date>2020-03-03T07:55:05Z</dc:date>
    <item>
      <title>SGPLOT include reflines in y-axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-include-reflines-in-y-axis/m-p/628796#M19540</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently I'm doing Bland-Altman Plots for many variables so I'm using a macro. My problem is that sometimes the upper and lower limits are not included in the plot. SAS sets the y-Axis automatically, but does not include the reflines I'm defining in the sgplot procedure. My question now is: how can I force SAS to include the limits in every plot?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I already tried setting the yaxis min=lower and max=upper. However, some of the plots are cut off to early, not showing all the data points lying outside the confidence limits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Setting the yaxis separately for every plot is not an option. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want SAS to define the y-axis automatically as it usually does, while including not only all data points, but the upper and lower limits as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What statement could I use for gaining the desired plot?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I&amp;nbsp;am thankful&amp;nbsp;for any help&amp;nbsp;and&amp;nbsp;information.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using SAS 9.4 (TS1M2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Magdalena&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the sgplot part of my macro:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / AttrPriority=None  width=11.35cm  height=8.49cm;
proc sgplot data=differs ; where Group='1';
styleattrs datasymbols=( Diamond) 
 datacontrastcolors=(Peru);
scatter x=mean y=diff/ group=abc;
refline &amp;amp;mean  /lineattrs=(color=green thickness=2px) ;
refline &amp;amp;upper &amp;amp;lower /lineattrs=(color=red );
run ; ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 15:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-include-reflines-in-y-axis/m-p/628796#M19540</guid>
      <dc:creator>Magdal3na</dc:creator>
      <dc:date>2020-03-02T15:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT include reflines in y-axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-include-reflines-in-y-axis/m-p/628806#M19542</link>
      <description>&lt;P&gt;Use NOCLIP option on the REFLINE statement.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 15:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-include-reflines-in-y-axis/m-p/628806#M19542</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2020-03-02T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT include reflines in y-axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-include-reflines-in-y-axis/m-p/629040#M19547</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Somehow, yesterday I didn't find this statement&amp;nbsp;&lt;img id="robotembarrassed" class="emoticon emoticon-robotembarrassed" src="https://communities.sas.com/i/smilies/16x16_robot-embarrassed.png" alt="Robot Embarassed" title="Robot Embarassed" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 07:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-include-reflines-in-y-axis/m-p/629040#M19547</guid>
      <dc:creator>Magdal3na</dc:creator>
      <dc:date>2020-03-03T07:55:05Z</dc:date>
    </item>
  </channel>
</rss>

