<?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 NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309634#M10873</link>
    <description>&lt;P&gt;does anyone know if there's a way to change the swimmer lane colors in PROC TEMPLATE swimmer plots??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also if you can add a second title in a legend? thanks&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 00:25:00 GMT</pubDate>
    <dc:creator>HitmonTran</dc:creator>
    <dc:date>2016-11-07T00:25:00Z</dc:date>
    <item>
      <title>NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309634#M10873</link>
      <description>&lt;P&gt;does anyone know if there's a way to change the swimmer lane colors in PROC TEMPLATE swimmer plots??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also if you can add a second title in a legend? thanks&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 00:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309634#M10873</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-11-07T00:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309720#M10876</link>
      <description>&lt;P&gt;I'm just guessing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find relevant information in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="http://www.pharmasug.org/proceedings/2014/DG/PharmaSUG-2014-DG07.pdf" target="_self"&gt;http://www.pharmasug.org/proceedings/2014/DG/PharmaSUG-2014-DG07.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a line taken from this link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;U&gt;scatter X=crstart1 Y=subjn /markerattrs=(symbol=trianglefilled size=9 &lt;STRONG&gt;color=red&lt;/STRONG&gt;);&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309720#M10876</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-07T13:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309724#M10878</link>
      <description>&lt;P&gt;Your posts of the same question under different headings is a bit confusing. &amp;nbsp;Also, it would be easier to help if you add more information, such as an image of what you want. &amp;nbsp;Having said that, you can find some information in this &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/?s=swimmer" target="_blank"&gt;blog article&lt;/A&gt;. &amp;nbsp;If you want to change the colors of the "Disease Stage" bars, then you can use a STYLEATTRS statement to set your colors, or use a Discrete Attributes Map (DATTRMAP). &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find more information on these options in the same blog by searching for those terms, or searching on Google or in SAS documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 14:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309724#M10878</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-11-07T14:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309777#M10880</link>
      <description>&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Proc Template. Below is the code.&amp;nbsp; Under "vectorplot" statement, I want to assign specific colors to "group=DSTAGE" (bold font). "DSTAGE" are different cohorts to the study. Attached is an image of my current plot.&amp;nbsp; The colors are hard to distinguish from each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do I apply the proc sgplot code onto this? thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Proc TEMPLATE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define STATGRAPH GTL_GRAPH;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BEGINGRAPH /BORDER=False;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LAYOUT OVERLAY /&lt;BR /&gt;&amp;nbsp;&amp;nbsp; YAXISOPTS= (DISPLAY=(LABEL) OFFSETMIN=0.1 OFFSETMAX=0.2 LABEL="Patients"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LABELATTRS=(FAMILY="Arial" WEIGHT=bold SIZE=11pt)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LINEAROPTS=(VIEWMIN=1 viewmax=%eval(&amp;amp;viewmax - 3) TICKVALUESEQUENCE=(start=1 end=&amp;amp;viewmax INCREMENT=1)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; XAXISOPTS=(OFFSETMIN=0.05 OFFSETMAX=0.05 LABEL="Drug Treatment (weeks)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LABELATTRS=(FAMILY="Arial" weight=bold size=11pt) TICKVALUEATTRS=(COLOR=BLACK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LINEAROPTS=(VIEWMIN=0 VIEWMAX=&amp;amp;maxweek TICKVALUESEQUENCE=(START=0 END=&amp;amp;maxweek INCREMENT=&amp;amp;weekint)));&lt;BR /&gt;&amp;nbsp;*&amp;nbsp; ENTRY HALIGN=center TEXTATTRS=(FAMILY="Arial" COLOR=black SIZE=11pt WEIGHT=bold) "Dose Cohort: Drug 20mg/d (N=10)"/valign=top ;&lt;BR /&gt;&lt;BR /&gt;* draw swimmer lane bars;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; VECTORPLOT X=XTIME Y=YVAR XORIGIN=0 YORIGIN=yvar/&lt;STRONG&gt;GROUP=DSTAGE&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DATATRANSPARENCY=0.4 ARROWHEADS=FALSE LINEATTRS=(PATTERN=1 THICKNESS=6));&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SCATTERPLOT X=eval(XTIME+999) Y=YVAR/GROUP=DSTAGE&amp;nbsp; Name="TYP" DATATRANSPARENCY=0.3 MARKERATTRS=(SYMBOL=squarefilled SIZE=9) ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;* draw SUBJECT on the bar;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SCATTERPLOT X=eval(XTIME-XTIME) Y=eval(YVAR+0.6)/GROUP=DSTAGE DATALABEL=SUBJECT DATALABELATTRS=(COLOR=black SIZE=5pt) MARKERATTRS=(size=0) ;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13116i90104C5497C63AA1/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="swimmerlanes.png" title="swimmerlanes.png" /&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309777#M10880</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-11-07T17:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309783#M10881</link>
      <description>&lt;P&gt;You will find full documentation on&amp;nbsp;&lt;STRONG&gt;VECTORPLOT&amp;nbsp;&lt;/STRONG&gt; in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#n0kbxb6xovwq2bn1rl0hqpi2qcf9.htm" target="_self"&gt;http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#n0kbxb6xovwq2bn1rl0hqpi2qcf9.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see next options in the linked page:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;H4 class="xis-argument"&gt;COLORMODEL=&lt;SPAN class="xis-userSuppliedValue"&gt;color-ramp-style-element&lt;/SPAN&gt; | (&lt;SPAN class="xis-userSuppliedValue"&gt;color-list&lt;/SPAN&gt;)&lt;/H4&gt;
&lt;H4 class="xis-argument"&gt;COLORRESPONSE=&lt;SPAN class="xis-userSuppliedValue"&gt;numeric-column&lt;/SPAN&gt; | &lt;SPAN class="xis-userSuppliedValue"&gt;range-attr-var&lt;/SPAN&gt; | &lt;SPAN class="xis-userSuppliedValue"&gt;expression&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used google search for: &amp;nbsp;"&lt;STRONG&gt;sas proc template vectorplot color&lt;/STRONG&gt;" and choosed the link above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309783#M10881</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-07T17:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309795#M10882</link>
      <description>&lt;P&gt;Next link is to documentation on&lt;STRONG&gt; SAS color names and color definitions&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2009/tt/TT04.pdf" target="_self"&gt;http://www.lexjansen.com/pharmasug/2009/tt/TT04.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see page 12 in the PDF.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 18:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309795#M10882</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-07T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309824#M10884</link>
      <description>Thanks for your help Shmuel, none of it seems to be working. Do you know if I can use multiple GROUP= in the vectorplot? that way I can use lineattrs=(color=xxx) to assign different colors? thanks!</description>
      <pubDate>Mon, 07 Nov 2016 19:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309824#M10884</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-11-07T19:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309836#M10885</link>
      <description>&lt;P&gt;Thanks everyone for their help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the problem (in bold):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc TEMPLATE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; define STATGRAPH GTL_GRAPH;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BEGINGRAPH /BORDER=False &lt;STRONG&gt;datacontrastcolor=(purple red blue green)&lt;/STRONG&gt;;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LAYOUT OVERLAY /&lt;BR /&gt;&amp;nbsp;&amp;nbsp; YAXISOPTS= (DISPLAY=(LABEL) OFFSETMIN=0.1 OFFSETMAX=0.2 LABEL="Patients"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LABELATTRS=(FAMILY="Arial" WEIGHT=bold SIZE=11pt)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LINEAROPTS=(VIEWMIN=1 viewmax=%eval(&amp;amp;viewmax - 3) TICKVALUESEQUENCE=(start=1 end=&amp;amp;viewmax INCREMENT=1)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; XAXISOPTS=(OFFSETMIN=0.05 OFFSETMAX=0.05 LABEL="Drug Treatment (weeks)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LABELATTRS=(FAMILY="Arial" weight=bold size=11pt) TICKVALUEATTRS=(COLOR=BLACK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LINEAROPTS=(VIEWMIN=0 VIEWMAX=&amp;amp;maxweek TICKVALUESEQUENCE=(START=0 END=&amp;amp;maxweek INCREMENT=&amp;amp;weekint)));&lt;BR /&gt;&amp;nbsp;*&amp;nbsp; ENTRY HALIGN=center TEXTATTRS=(FAMILY="Arial" COLOR=black SIZE=11pt WEIGHT=bold) "Dose Cohort: Drug 20mg/d (N=10)"/valign=top ;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 19:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309836#M10885</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2016-11-07T19:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309844#M10887</link>
      <description>&lt;P&gt;Sorry, I have almost no experience with SAS GRAPH of any kind.&lt;/P&gt;
&lt;P&gt;I have a lot of experience working with SAS and searching for relevant SAS documentation,&lt;/P&gt;
&lt;P&gt;and that is what I have done, with hope that you may understand the documentation better than me&lt;/P&gt;
&lt;P&gt;and come to the right conclusion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 20:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309844#M10887</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-07T20:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP! swimmer plots - change swim lane colors PROC TEMPLATE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309846#M10888</link>
      <description>&lt;P&gt;The 4 colors you have defined will be used for the classifications instead of the 12 colors defined in the Style. &amp;nbsp;However, it should be noted the colors will be used in the order the Class values arrive in the data. &amp;nbsp;If the order of the class values in the data change from day to day, you will get different class values assigned to different colors. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The safest way to &lt;STRONG&gt;consistently&lt;/STRONG&gt; assign colors to class values is by using the &lt;STRONG&gt;Discrete Attributes Map&lt;/STRONG&gt;, where they are assigned by VALUE, like "Mild", or "Severe" and not by position in the data.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 20:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NEED-HELP-swimmer-plots-change-swim-lane-colors-PROC-TEMPLATE/m-p/309846#M10888</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-11-07T20:25:34Z</dc:date>
    </item>
  </channel>
</rss>

