<?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: SAS Graphics in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphics/m-p/444721#M15294</link>
    <description>&lt;P&gt;You can add (overlay) multiple graphs on the same plot, so its just a matter of adding the data you want to the dataset, and adding additional plot statements.&amp;nbsp; Assume that your data contains median_base median_visit in your data, then you could just add:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=ec noautolegend;
  series x=years_on_follow_up y=cd4 / group=studyid LINEATTRS=(color=black pattern=1);
  reg x=year y=cd4 / nomarkers lineattrs=(color=red);
  series x=median_base y=median_visit;
xaxis label = "Years on follow-up";
yaxis label = "CD4 Count" ;
run;&lt;/PRE&gt;
&lt;P&gt;Or something like that to get the extra line.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 13:01:32 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-03-12T13:01:32Z</dc:date>
    <item>
      <title>SAS Graphics</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphics/m-p/444717#M15293</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would like to generate a spaghetti plot for individuals on follow-up (having a continuous outcome)&amp;nbsp; and thereafter overlay an overall line of median (with quartile ranges) providing a summary of the outcome measures at each visit. I would also like to join the median values from baseline to the last visit (have 6 visits).&lt;/P&gt;&lt;P&gt;I can do the spaghetti plot fine without difficulty but I was wondering if someone can point me to a similar example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code so far looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=ec noautolegend;&lt;BR /&gt;series x=years_on_follow_up y=cd4 / group=studyid LINEATTRS=(color=black pattern=1);&lt;BR /&gt;reg x=year y=cd4 / nomarkers lineattrs=(color=red);&lt;/P&gt;&lt;P&gt;xaxis label = "Years on follow-up";&lt;BR /&gt;yaxis label = "CD4 Count" ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts and suggestions will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 12:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphics/m-p/444717#M15293</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2018-03-12T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graphics</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphics/m-p/444721#M15294</link>
      <description>&lt;P&gt;You can add (overlay) multiple graphs on the same plot, so its just a matter of adding the data you want to the dataset, and adding additional plot statements.&amp;nbsp; Assume that your data contains median_base median_visit in your data, then you could just add:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=ec noautolegend;
  series x=years_on_follow_up y=cd4 / group=studyid LINEATTRS=(color=black pattern=1);
  reg x=year y=cd4 / nomarkers lineattrs=(color=red);
  series x=median_base y=median_visit;
xaxis label = "Years on follow-up";
yaxis label = "CD4 Count" ;
run;&lt;/PRE&gt;
&lt;P&gt;Or something like that to get the extra line.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphics/m-p/444721#M15294</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-12T13:01:32Z</dc:date>
    </item>
  </channel>
</rss>

