<?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: Add a reference line PROC SGSCATTER in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/520645#M17562</link>
    <description>&lt;P&gt;Thank you PG&lt;/P&gt;
&lt;P&gt;We are keen to keep with PROC SGSCATTER as that is what is used throughout our course.&lt;/P&gt;
&lt;P&gt;Marisa&lt;/P&gt;</description>
    <pubDate>Wed, 12 Dec 2018 00:51:21 GMT</pubDate>
    <dc:creator>marisa_jenkins</dc:creator>
    <dc:date>2018-12-12T00:51:21Z</dc:date>
    <item>
      <title>Add a reference line PROC SGSCATTER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519000#M17529</link>
      <description>&lt;P&gt;HI all&lt;/P&gt;
&lt;P&gt;I know you can add a refline in PROC SGPLOT but can you do it in PROC SGSCATTER?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g. This is the code we would use to get a refline at Y=0 using PROC SGPLOT but we are teaching a course that primarily uses SGSCATTER as has the ability to produce multiple scatterplots in one PROC and keen to just stick with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=dataset;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;SCATTER X= xvar Y= yvar;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LOESS &lt;SPAN&gt;X= xvar Y= yvar;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;REFLINE 0;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Marisa&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 01:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519000#M17529</guid>
      <dc:creator>marisa_jenkins</dc:creator>
      <dc:date>2018-12-06T01:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add a reference line PROC SGSCATTER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519010#M17530</link>
      <description>Not AFAIK but you can add a regression or loess line. &lt;BR /&gt;&lt;BR /&gt;Sgcatter does have tmplout on the PROC statement so you can get the GTL code and modify that. &lt;BR /&gt;&lt;BR /&gt;Or switch to SGPANEL? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Dec 2018 03:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519010#M17530</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-06T03:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add a reference line PROC SGSCATTER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519016#M17531</link>
      <description>&lt;P&gt;Thank you Reeza&lt;/P&gt;
&lt;P&gt;Yes we can add a LOESS line in PROC SGSCATTER but are looking for a ref line at Y = 0.&lt;/P&gt;
&lt;P&gt;We currently use a mix of PROC GPLOT and PROC SGSCATTER but are hoping to just use one and not introduce another to be consistent with out other units.&lt;/P&gt;
&lt;P&gt;Marisa&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 05:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519016#M17531</guid>
      <dc:creator>marisa_jenkins</dc:creator>
      <dc:date>2018-12-06T05:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add a reference line PROC SGSCATTER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519023#M17532</link>
      <description>&lt;P&gt;Could also be done with SG annotation.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 06:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/519023#M17532</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-12-06T06:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add a reference line PROC SGSCATTER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/520645#M17562</link>
      <description>&lt;P&gt;Thank you PG&lt;/P&gt;
&lt;P&gt;We are keen to keep with PROC SGSCATTER as that is what is used throughout our course.&lt;/P&gt;
&lt;P&gt;Marisa&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 00:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/520645#M17562</guid>
      <dc:creator>marisa_jenkins</dc:creator>
      <dc:date>2018-12-12T00:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add a reference line PROC SGSCATTER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/520669#M17564</link>
      <description>&lt;P&gt;SGSCATTER is not a good choice&amp;nbsp;as a&amp;nbsp;general purpose graphing procedure, if I may say so. Here is how to draw reference lines with annotation in SGSCATTER:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data reflines;
retain drawspace "layoutpercent" linecolor "blue";
input function $ x1 y1 x2 y2;
datalines;
line 11 55.5 53.5 55.5 
line 56 55.5 99   55.5
;

proc sgscatter data=sashelp.class sganno=reflines;
compare x=(age height) y=weight / loess=(degree=2);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGScatter8.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25574iB0857FBEBA69C083/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGScatter8.png" alt="SGScatter8.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Positioning the reference&amp;nbsp;lines&amp;nbsp;was by trial and error as you cannot tie their positions to data values. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 05:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-a-reference-line-PROC-SGSCATTER/m-p/520669#M17564</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-12-12T05:00:17Z</dc:date>
    </item>
  </channel>
</rss>

