<?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 do I plot multiple(by group) adjusted trend line one graph? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711739#M20901</link>
    <description>&lt;P&gt;Try two things:&lt;/P&gt;
&lt;P&gt;1. add the ID statement to the proc:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; ID district;&lt;/P&gt;
&lt;P&gt;2. Make sure that your input data is sorted by the "district" variable.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 18:37:48 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2021-01-15T18:37:48Z</dc:date>
    <item>
      <title>How do I plot multiple(by group) adjusted trend line one graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711728#M20898</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to code a a trend line for multiple districts in one graph. I have used a similar code for the trend line for individual plot and it works. The problem I am trying to add the 'district' variable in the proc x11 state. Right now 'district' is not added to my proc x11 statement. I'd appreciate your insight on how to add the 'district 'variable.&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;proc x11 data = causerie_t_total_mean_all noprint;&lt;BR /&gt;monthly additive date = date;&lt;BR /&gt;var mean_cough_rate;&lt;BR /&gt;tables a1 d12;&lt;BR /&gt;output out = test_all_cold a1 = mean_coldcough_rate d12 = adj;run;&lt;BR /&gt;title 'Trend line for the proportion of cough, by district';&lt;BR /&gt;proc sgplot data=test_all_cold;&lt;BR /&gt;series x=date y= adj / group=district markers legendlabel="trend cycle";&lt;BR /&gt;xaxis label='Date';&lt;BR /&gt;yaxis label='Proportion of cough';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;````&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711728#M20898</guid>
      <dc:creator>pearson101</dc:creator>
      <dc:date>2021-01-15T18:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot multiple(by group) adjusted trend line one graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711735#M20899</link>
      <description>&lt;P&gt;If you add the "district" variable to a BY statement in PROC X11, does the output data set contain the calculations per district? If so, you can plot those results in PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711735#M20899</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-01-15T18:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot multiple(by group) adjusted trend line one graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711736#M20900</link>
      <description>&lt;P&gt;Hello, when I type by district, it produced a output for only one of the district. Is it possible to include the district variable in oneput data such that I can&amp;nbsp; code something like?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=test_all_cold;&lt;BR /&gt;series x=date y= adj / group=district markers legendlabel="trend cycle";run;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711736#M20900</guid>
      <dc:creator>pearson101</dc:creator>
      <dc:date>2021-01-15T18:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot multiple(by group) adjusted trend line one graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711739#M20901</link>
      <description>&lt;P&gt;Try two things:&lt;/P&gt;
&lt;P&gt;1. add the ID statement to the proc:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; ID district;&lt;/P&gt;
&lt;P&gt;2. Make sure that your input data is sorted by the "district" variable.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711739#M20901</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-01-15T18:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot multiple(by group) adjusted trend line one graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711750#M20902</link>
      <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-plot-multiple-by-group-adjusted-trend-line-one-graph/m-p/711750#M20902</guid>
      <dc:creator>pearson101</dc:creator>
      <dc:date>2021-01-15T18:52:11Z</dc:date>
    </item>
  </channel>
</rss>

