<?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: NEED HELP!!! Spider Plots w/ Proc Template in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306986#M10775</link>
    <description>&lt;P&gt;You&amp;nbsp;want to display the&amp;nbsp;tumor size change from baseline for each subject over time. &amp;nbsp;This is called a SERIES plot, and needs multiple observations with (x,y) data, that are connected by line segments. &amp;nbsp;When you have multiple series in the data, you need a curve id (Group) which can be the Subject column. &amp;nbsp;Now, since you want to color each line by the response group classification (Complete Response, etc), you need to provide that classification as a separate option called GroupLC. &amp;nbsp;This idea is also sometimes also referred to as a "&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2014/08/16/more-on-spaghetti-plots/" target="_blank"&gt;Speghetti Plot&lt;/A&gt;",&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 23:06:20 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2016-10-24T23:06:20Z</dc:date>
    <item>
      <title>NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306642#M10759</link>
      <description>&lt;P&gt;Hi, I am having trouble using an existing Swimmer Plot program and changing it into a Spider Plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not familiar with graphs and having trouble changing the y-axis from "one record per subject"&amp;nbsp; to "% change in lesion size from baseline"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the original Swimmer's plot code below:&lt;/P&gt;&lt;P&gt;(I believe I have to change &lt;STRONG&gt;YVAR=_n_&lt;/STRONG&gt;. &amp;nbsp; where "&lt;STRONG&gt;_n_&lt;/STRONG&gt;" is the sequence # of each subject. And it's one subject per record).&lt;/P&gt;&lt;P&gt;I created a variable &lt;STRONG&gt;lespct1-lespct6&lt;/STRONG&gt;, which is the "lesion percentage change from baseline".&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can somehow use that variable instead of "_n_" then I think the graphs should change, no?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;data final;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; set sw;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; YVAR = _n_;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; if ongoing= 1 then do;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xongo= xtime + 0.25;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;*&amp;nbsp; if conrflag = 'Y' then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xconrsp= -0.5 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;*&amp;nbsp; else xconrsp= . ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp; format dstage stage. ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;data _null_;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; set final end=last;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; if last then do;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput('viewmax', left(put(_n_,3.)));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput('thickn',&amp;nbsp; left(put(int(250/_n_),3.)));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;proc print data=final;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;title;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;footnote;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;*ODS output, set graph orientation, size, RTF file name;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;OPTIONS nodate nonumber orientation=landscape papersize='LETTER' ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods graphics on / height=7.5 in width=9.5 in ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods listing close;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods pdf file = "&amp;amp;output\&amp;amp;pgmname..pdf" NOGTITLE NOGFOOTNOTE style=tlout;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/*************** Output graphic template***********/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Proc TEMPLATE;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; define STATGRAPH gtl_graph;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; begingraph/BORDER=False;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp; LAYOUT OVERLAY /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YAXISOPTS = (DISPLAY=(LABEL) OFFSETMIN=0.1 OFFSETMAX=0.2 LABEL="Subjects Received Drug"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABELATTRS=(FAMILY="Arial" WEIGHT=bold SIZE=11pt) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LINEAROPTS= (VIEWMIN=1 viewmax=%eval(&amp;amp;viewmax-3) TICKVALUESEQUENCE=(start=1 end=&amp;amp;viewmax INCREMENT=1)))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XAXISOPTS = (OFFSETMIN=0.05 OFFSETMAX=0.05 LABEL="Drug Exposure (weeks)"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABELATTRS=(FAMILY="Arial" weight=bold size=11pt) TICKVALUEATTRS=(COLOR=BLACK) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LINEAROPTS=(VIEWMIN=0 VIEWMAX=&amp;amp;maxweek TICKVALUESEQUENCE=(START=0 END=&amp;amp;maxweek&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCREMENT=weekint)));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /******** draw swimmer lane bars*******/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; * barchart x=YVAR y=XTIME /Group=DSTAGE Name="TYP" BARWIDTH=0.6 BARLABEL=0 stat=sum orient=horizontal;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; VECTORPLOT&amp;nbsp; X=XTIME &lt;STRONG&gt;Y=yvar&lt;/STRONG&gt; XORIGIN=0 YORIGIN=&lt;STRONG&gt;yvar&lt;/STRONG&gt;/GROUP=DSTAGE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; DATATRANSPARENCY=0.4 ARROWHEADS=FALSE LINEATTRS=(PATTERN=1 THICKNESS=7 );&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; SCATTERPLOT&amp;nbsp; X=eval(XTIME+999) Y=&lt;STRONG&gt;yvar&lt;/STRONG&gt;/GROUP=DSTAGE&amp;nbsp; Name="TYP" DATATRANSPARENCY=0.3 MARKERATTRS=(SYMBOL=squarefilled SIZE=9) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;etc....&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 18:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306642#M10759</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-10-23T18:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306649#M10761</link>
      <description>&lt;P&gt;What is a "Spider Plot" supposed to look like? &amp;nbsp;Google shows some Radar Plots. &amp;nbsp;Is that what you want? &amp;nbsp;Please share some example images, and you full code with data so we can run the program and see what is happening. &amp;nbsp;Also, what Version of SAS are you using?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 19:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306649#M10761</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-10-23T19:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306656#M10765</link>
      <description>&lt;P&gt;The happy faces in the code is suppose to be a ": )"&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 19:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306656#M10765</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-10-23T19:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306658#M10766</link>
      <description>&lt;P&gt;just running your data steps, fixed some typos. &amp;nbsp;However, macro variable&amp;nbsp;&lt;STRONG&gt;&amp;amp;crdte&lt;/STRONG&gt; is not found in:&lt;/P&gt;
&lt;P&gt;xtime = round((min(&lt;STRONG&gt;"&amp;amp;crdte"d&lt;/STRONG&gt;, datepart(eosdat), datepart(eotdat)) - ex1dt)/7,0.1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 20:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306658#M10766</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-10-23T20:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306672#M10769</link>
      <description>&amp;amp;crdte can be replaced with today's date : '21OCT2016'd. thanks!&lt;BR /&gt;&lt;BR /&gt;xtime = round((min('21OCT2016'd, datepart(eosdat), datepart(eotdat)) - ex1dt)/7,0.1);</description>
      <pubDate>Mon, 24 Oct 2016 00:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306672#M10769</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-10-24T00:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306969#M10773</link>
      <description>&lt;P&gt;Your data appears quite complicated. &amp;nbsp;Here is a simple example on how to create such a Spider plot.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2016/10/24/clinical-graphs-spider-plot/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2016/10/24/clinical-graphs-spider-plot/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306969#M10773</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-10-24T20:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306979#M10774</link>
      <description>so it looks like I I need to manipulate my data from one record per subject to multiple records per subject with one variable for "% change from baseline"?</description>
      <pubDate>Mon, 24 Oct 2016 22:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306979#M10774</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-10-24T22:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306986#M10775</link>
      <description>&lt;P&gt;You&amp;nbsp;want to display the&amp;nbsp;tumor size change from baseline for each subject over time. &amp;nbsp;This is called a SERIES plot, and needs multiple observations with (x,y) data, that are connected by line segments. &amp;nbsp;When you have multiple series in the data, you need a curve id (Group) which can be the Subject column. &amp;nbsp;Now, since you want to color each line by the response group classification (Complete Response, etc), you need to provide that classification as a separate option called GroupLC. &amp;nbsp;This idea is also sometimes also referred to as a "&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2014/08/16/more-on-spaghetti-plots/" target="_blank"&gt;Speghetti Plot&lt;/A&gt;",&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 23:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/306986#M10775</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-10-24T23:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP!!! Spider Plots w/ Proc Template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/309633#M10872</link>
      <description>&lt;P&gt;Is there a way to change the color of the swimmer lanes?&lt;BR /&gt;&lt;BR /&gt;And is there a way to add a second title to the legend outside the graphs?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 00:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-Spider-Plots-w-Proc-Template/m-p/309633#M10872</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-11-07T00:22:48Z</dc:date>
    </item>
  </channel>
</rss>

