<?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 Reference Line of 0 centered for Proc SGPLOT (Bland-Altman) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392037#M13406</link>
    <description>&lt;P&gt;This should be easy. I'm trying to make a Bland-Altman plot with a reference line at 0- but the reference line will show at the bottom, I need&amp;nbsp;it centered on the y-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data = EZ3;&lt;/P&gt;&lt;P&gt;refline 0 / axis =Y;&lt;/P&gt;&lt;P&gt;scatter y = difference x = average;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In all examples I'm seeing online this is the (basic) way to do it and the reference line will be centered at 0 on the Y-axis with code like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, I created a "fake" dataset that is exactly 3 times higher than the original dataset, so what I am looking at looks like a regression line since the 0 is not centered on the y-axis.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2017 21:07:54 GMT</pubDate>
    <dc:creator>Estelle</dc:creator>
    <dc:date>2017-08-30T21:07:54Z</dc:date>
    <item>
      <title>Reference Line of 0 centered for Proc SGPLOT (Bland-Altman)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392037#M13406</link>
      <description>&lt;P&gt;This should be easy. I'm trying to make a Bland-Altman plot with a reference line at 0- but the reference line will show at the bottom, I need&amp;nbsp;it centered on the y-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data = EZ3;&lt;/P&gt;&lt;P&gt;refline 0 / axis =Y;&lt;/P&gt;&lt;P&gt;scatter y = difference x = average;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In all examples I'm seeing online this is the (basic) way to do it and the reference line will be centered at 0 on the Y-axis with code like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, I created a "fake" dataset that is exactly 3 times higher than the original dataset, so what I am looking at looks like a regression line since the 0 is not centered on the y-axis.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 21:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392037#M13406</guid>
      <dc:creator>Estelle</dc:creator>
      <dc:date>2017-08-30T21:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Line of 0 centered for Proc SGPLOT (Bland-Altman)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392039#M13407</link>
      <description>&lt;P&gt;I don't understand what you mean by 'centered at 0 on the Y axis'. Could you provide a sample or visual to help with this?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 21:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392039#M13407</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-30T21:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Line of 0 centered for Proc SGPLOT (Bland-Altman)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392050#M13408</link>
      <description>&lt;P&gt;Attached you will see the Bland-Altman plot on the right, you'll see 0 is centered on the Y-axis. Regression on the left for comparison.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="R_vs_BA.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14745i674673536B60A77B/image-size/large?v=v2&amp;amp;px=999" role="button" title="R_vs_BA.png" alt="R_vs_BA.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 21:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392050#M13408</guid>
      <dc:creator>Estelle</dc:creator>
      <dc:date>2017-08-30T21:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Line of 0 centered for Proc SGPLOT (Bland-Altman)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392055#M13409</link>
      <description>&lt;P&gt;Add a yaxis statement with a value list. Something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yaxis values= (-25 to 25 by 5);&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;yaxis values= (-10 -5 0 5 10);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with the range as suitable for your data. That should force an axis with the 0 in the middle&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 22:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392055#M13409</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-30T22:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Line of 0 centered for Proc SGPLOT (Bland-Altman)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392060#M13410</link>
      <description>&lt;P&gt;Thanks! Totally works.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 23:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-Line-of-0-centered-for-Proc-SGPLOT-Bland-Altman/m-p/392060#M13410</guid>
      <dc:creator>Estelle</dc:creator>
      <dc:date>2017-08-30T23:01:21Z</dc:date>
    </item>
  </channel>
</rss>

