<?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: How to add a trend line to sgplot given my plot ? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-a-trend-line-to-sgplot-given-my-plot/m-p/711125#M20892</link>
    <description>&lt;P&gt;"trend line" can have any one of several meanings and you do not specify exactly what trend you mean&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how to obtain one such trend line — add a &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p0mn6vl6clqbgyn1ivs69lezdxhf.htm&amp;amp;locale=en" target="_self"&gt;REG&lt;/A&gt; statement into PROC SGPLOT with the GROUP= option. This could possibly create a very cramped and hard to read plot, but I leave that up to you to decide.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 14:37:33 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-01-13T14:37:33Z</dc:date>
    <item>
      <title>How to add a trend line to sgplot given my plot ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-a-trend-line-to-sgplot-given-my-plot/m-p/711121#M20891</link>
      <description>&lt;P&gt;I have a plot of time vs average height. The plot displays by 6 line due to the group (district). How do add a trend line given the group? is it something I have to do prior to plotting?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;````&lt;/P&gt;&lt;P&gt;title 'Average height (by district)';&lt;BR /&gt;proc sgplot data=height;&lt;BR /&gt;series x=date y=mean_height / group=district legendlabel="original" ;&lt;BR /&gt;xaxis label='Date';&lt;BR /&gt;yaxis label='Average';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 14:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-add-a-trend-line-to-sgplot-given-my-plot/m-p/711121#M20891</guid>
      <dc:creator>pearson101</dc:creator>
      <dc:date>2021-01-13T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a trend line to sgplot given my plot ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-a-trend-line-to-sgplot-given-my-plot/m-p/711125#M20892</link>
      <description>&lt;P&gt;"trend line" can have any one of several meanings and you do not specify exactly what trend you mean&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how to obtain one such trend line — add a &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p0mn6vl6clqbgyn1ivs69lezdxhf.htm&amp;amp;locale=en" target="_self"&gt;REG&lt;/A&gt; statement into PROC SGPLOT with the GROUP= option. This could possibly create a very cramped and hard to read plot, but I leave that up to you to decide.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 14:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-add-a-trend-line-to-sgplot-given-my-plot/m-p/711125#M20892</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-13T14:37:33Z</dc:date>
    </item>
  </channel>
</rss>

