<?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: Animated Patient data in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609713#M19199</link>
    <description>&lt;P&gt;It is not clear what is the variable that is driving the animation.&amp;nbsp; Do you want build from one patient to two patients etc?&lt;/P&gt;
&lt;P&gt;Or do you want show snapshot of what data was collected over time?&amp;nbsp; So first image might have just two patients with short "bars" and then the number of patients and the lengths of the bars increase as time moves forward.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 15:38:14 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-12-05T15:38:14Z</dc:date>
    <item>
      <title>Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609639#M19193</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph_sample.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34473i92C23598BB36609D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Graph_sample.JPG" alt="Graph_sample.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
  length patient $8. milestone $75. ;
  infile cards dlm=",";
  input patient $ milestone $ day;
  cards;
  Patient1,Treatment discontinuation due to lack of efficacy,7
  Patient2, ,15
  Patient3,Study discontinuation,5
  Patient4,Rescue medication,10
  Patient5,Death,4
  Patient6,Treatment discontinuation due adverse events,12
  Patient7,Study discontinuation,8
;
run;  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please find the snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am currently using &lt;STRONG&gt;SAS 9.4&lt;/STRONG&gt; and &lt;STRONG&gt;SAS studio&lt;/STRONG&gt; software.&lt;/P&gt;&lt;P&gt;I want to create a similar graph of patient data but with the animation.&lt;/P&gt;&lt;P&gt;Meaning, when I opened that file it should start animate from the first patient to last patient with the milestones (data showed with different symbols in the graph). I also would like to see the animation from left to right.&lt;/P&gt;&lt;P&gt;Hence kindly let me know, will that be possible to do with the SAS 9.4/SAS Studio. If Yes, kindly let me know how to do that using graphical procedures in SAS.&lt;/P&gt;&lt;P&gt;Kindly let me know if my requirement is not clear so that I can elaborate furthermore.&lt;/P&gt;&lt;P&gt;The attached graph was not created using the below data and I am not sure which software they have used to create that.&lt;/P&gt;&lt;P&gt;I just want to create the same layout with the required animation using the below data. In the X-axis I would like to see the Day values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;.&amp;nbsp;&lt;BR /&gt;Best,&lt;BR /&gt;Hari&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 11:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609639#M19193</guid>
      <dc:creator>Hari6</dc:creator>
      <dc:date>2019-12-05T11:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609681#M19194</link>
      <description>&lt;P&gt;I suggest you proceed in three steps.&lt;/P&gt;
&lt;P&gt;1. Learn how to create the graph for one patient ID. This graph is sometimes called &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2014/06/22/swimmer-plot/" target="_self"&gt;a "swimmer's plot";&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Use a BY statement to create a sequence of plots, one for each patient ID.&lt;/P&gt;
&lt;P&gt;3. Use the tips in the article &lt;A href="https://blogs.sas.com/content/iml/2016/08/22/animation-by-statement-proc-sgplot.html" target="_self"&gt;"Create an animation with the BY statement in PROC SGPLOT"&lt;/A&gt;&amp;nbsp;to create the animation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 13:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609681#M19194</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-05T13:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609694#M19195</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am aware of how to create a graph of different types.&lt;BR /&gt;&lt;BR /&gt;However here my requirement is different than the routine one. Using BY&lt;BR /&gt;statement in PROC SGPLOT we can create a animated plot which i am aware.&lt;BR /&gt;However in this requirement i want to see the animation for all the&lt;BR /&gt;patients in the same graph in sigle shot without using BY statement as&lt;BR /&gt;this BY statement separates each patient into different graphs with the&lt;BR /&gt;animation.&lt;BR /&gt;&lt;BR /&gt;Kindly lett me know if any documents are there to refer.&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609694#M19195</guid>
      <dc:creator>Hari6</dc:creator>
      <dc:date>2019-12-05T14:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609697#M19196</link>
      <description>&lt;P&gt;The link I provided (the third step) shows how to create an animation from the BY-group analysis.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609697#M19196</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-05T15:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609699#M19197</link>
      <description>Hi Rick_SAS,&lt;BR /&gt;&lt;BR /&gt;Thank you for your email.&lt;BR /&gt;&lt;BR /&gt;I will just explore that one and get back to you if still unable to do that.&lt;BR /&gt;&lt;BR /&gt;Could you please tell me is that possible to create the exact layout with&lt;BR /&gt;animation which i have pasted in my previous post without any limitations&lt;BR /&gt;using SAS?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Hari&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609699#M19197</guid>
      <dc:creator>Hari6</dc:creator>
      <dc:date>2019-12-05T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609709#M19198</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122550"&gt;@Hari6&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Rick_SAS,&lt;BR /&gt;&lt;BR /&gt;Thank you for your email.&lt;BR /&gt;&lt;BR /&gt;I will just explore that one and get back to you if still unable to do that.&lt;BR /&gt;&lt;BR /&gt;Could you please tell me is that possible to create the exact layout with&lt;BR /&gt;animation which i have pasted in my previous post without any limitations&lt;BR /&gt;using SAS?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Hari&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think that you should define exactly what you mean by "without any limitations".&lt;/P&gt;
&lt;P&gt;The more complex a result then typically the more complex a program. So there may well be limitations based on the programmers ability. Or the content of the data.&lt;/P&gt;
&lt;P&gt;Your picture has a lot of different elements without any reference to what values or rules are involved in creating/displaying them. You may have to provide image files or know an appropriate Unicode character depending on approaches to placing some of those graphic elements.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 18:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609709#M19198</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-05T18:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609713#M19199</link>
      <description>&lt;P&gt;It is not clear what is the variable that is driving the animation.&amp;nbsp; Do you want build from one patient to two patients etc?&lt;/P&gt;
&lt;P&gt;Or do you want show snapshot of what data was collected over time?&amp;nbsp; So first image might have just two patients with short "bars" and then the number of patients and the lengths of the bars increase as time moves forward.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609713#M19199</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-05T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609718#M19200</link>
      <description>&lt;P&gt;I agree with ballardw. It is possible to visualize the INFORMATION that the graph shows, but using a lightning bolt and other images might require more work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck in your project.&amp;nbsp;In my opinion, a static graph that includes all patients is usually more informative and useful that an animated version. I encourage you to discuss this project with your supervisor and discuss whether an animated graph is really the best way to visualize these data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609718#M19200</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-05T15:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609927#M19202</link>
      <description>&lt;P&gt;I assume you want to animate the graph over time(?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mention that you don't want to use a by statement because "&lt;SPAN&gt;BY statement separates each patient into different graph". But that only happens if you use "by patient". You'll want to create a special dataset where it has a snapshot of the data at each time increment you desire in your animation, and then use "by time_increment" (rather than by patient). An alternative to using "by time_increment" would be to use a data step to look through the desired dates, and call a macro which subsets (or creates) the desired dataset &amp;amp; plot for that date. I would prefer using this macro technique, but I guess it depends on whether or not you're comfortable writing macros.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 12:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/609927#M19202</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-12-06T12:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/615543#M19293</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having a&lt;SPAN&gt;&amp;nbsp;static graph that includes all patients is usually more informative and this is absolutely correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However people are looking for the fancy graphs and that's how the request has come.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will try using all the possible way to create it (Using GTL and SGplot with by statement).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hari&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 05:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/615543#M19293</guid>
      <dc:creator>Hari6</dc:creator>
      <dc:date>2020-01-07T05:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Animated Patient data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/615545#M19294</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for your response on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned If i use the time instead of the Patient in BY variable the Graph will show that data of all Patients till that time point. However As per the requirement they'll only want to see Patient wise data instead time meaning what happened to that each individual Patient through out the study and similarly for all patients. I think this animation by Patient can be done using SAS Visual analytics? can i know your thought on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bets,&lt;/P&gt;&lt;P&gt;Hari&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 05:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Animated-Patient-data/m-p/615545#M19294</guid>
      <dc:creator>Hari6</dc:creator>
      <dc:date>2020-01-07T05:42:29Z</dc:date>
    </item>
  </channel>
</rss>

