<?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: Spaghetti Plots Where Subject Changes Groups in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583913#M18781</link>
    <description>&lt;P&gt;For a discussion and some code that describes Reeza's idea, see &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/03/02/series-plot-varying-attributes/" target="_self"&gt;"Series plot with varying attributes"&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2019 13:57:30 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-08-26T13:57:30Z</dc:date>
    <item>
      <title>Spaghetti Plots Where Subject Changes Groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583554#M18759</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to draw a spaghetti plot that has a single line per subject but some subjects change groups during the study period (crossover) - for this subject, I want the single line to be two colors (eg red when group 1 and blue when group 2). How can I go about doing this? My current code is below not achieving the desired results. Basically for patients who switch treatment groups mid-study their line color should change when they switch. Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sgplot data=data;
  title 'Study Results by Treatment Group';
  series x=Time y=Score / group=patient 
               grouplc=arm name='grouping';
  keylegend 'grouping' / type=linecolor;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Aug 2019 17:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583554#M18759</guid>
      <dc:creator>thanksforhelp12</dc:creator>
      <dc:date>2019-08-23T17:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Spaghetti Plots Where Subject Changes Groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583556#M18761</link>
      <description>I would probably create a combined variable that indicates group and patient and then use a discrete attribute table to control the colours manually.</description>
      <pubDate>Fri, 23 Aug 2019 17:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583556#M18761</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-23T17:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spaghetti Plots Where Subject Changes Groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583913#M18781</link>
      <description>&lt;P&gt;For a discussion and some code that describes Reeza's idea, see &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/03/02/series-plot-varying-attributes/" target="_self"&gt;"Series plot with varying attributes"&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583913#M18781</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-26T13:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Spaghetti Plots Where Subject Changes Groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583998#M18783</link>
      <description>&lt;P&gt;Thanks to both of you. I actually stumbled upon that post incidentally this weekend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems if I have 100s of subjects I have to manually code every one of their lines?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 17:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/583998#M18783</guid>
      <dc:creator>thanksforhelp12</dc:creator>
      <dc:date>2019-08-26T17:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Spaghetti Plots Where Subject Changes Groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/584007#M18784</link>
      <description>&lt;P&gt;Not necessarily. Post your data. Maybe the DATA step can produce the recoding automatically. Do you have SAS/IML?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 18:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/584007#M18784</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-08-26T18:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Spaghetti Plots Where Subject Changes Groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/584008#M18785</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256012"&gt;@thanksforhelp12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks to both of you. I actually stumbled upon that post incidentally this weekend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it seems if I have 100s of subjects I have to manually code every one of their lines?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Depends on how you define manually coding, but you should be able to have a data driven solution - I would assume you could use some basic IF/THEN statements to create your data appropriately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 18:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Spaghetti-Plots-Where-Subject-Changes-Groups/m-p/584008#M18785</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-26T18:13:05Z</dc:date>
    </item>
  </channel>
</rss>

