<?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: Outputting KM curve with transparent background in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338833#M11778</link>
    <description>&lt;P&gt;I believe you (or your company) can upgrade to a new maintenance release.&lt;/P&gt;
&lt;P&gt;Contact &lt;A href="mailto:contracts@sas.com" target="_blank"&gt;contracts@sas.com&lt;/A&gt;, or, call our customer service line 919-677-8003.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2017 15:28:03 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2017-03-07T15:28:03Z</dc:date>
    <item>
      <title>Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338556#M11767</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I am trying to ouput a KM curve using proc lifetest, but with with transparent background. This way, I can overlay the image over another JPEG image and see if the curves overlap. At the moment, the JPEG image appears with white, non-transparent background. I wish to keep everything the same (curve colors, etc) except the the background.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods rtf file="&amp;amp;outputloc\test.rtf";&lt;BR /&gt;proc lifetest data=test method=KM&lt;BR /&gt; plots=survival(atrisk=0 to 30 by 3) timelist=0 to 30 by 3;&lt;BR /&gt; time os_m*censors(0); &lt;BR /&gt; strata treat;&lt;BR /&gt; title1 'Kaplan-Meier Plot for OS';&lt;BR /&gt; label os_m="Months";&lt;BR /&gt; where itt=1;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;MK&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 20:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338556#M11767</guid>
      <dc:creator>MiraKr_</dc:creator>
      <dc:date>2017-03-06T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338558#M11768</link>
      <description>&lt;P&gt;PS: These need to go in a power point slide deck.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 20:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338558#M11768</guid>
      <dc:creator>MiraKr_</dc:creator>
      <dc:date>2017-03-06T20:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338564#M11769</link>
      <description>&lt;P&gt;I'm assuming you're not using SAS 9.4 since you're not using ODS PPT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, here's a starter on customizing survival plots. It's not as easy as you'd like, unfortunately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_kaplan_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_kaplan_toc.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 20:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338564#M11769</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-06T20:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338574#M11770</link>
      <description>&lt;P&gt;With SAS 9.40M3, GTL supports output with transparent background. &amp;nbsp;You will also have to make the wall transparent.&lt;/P&gt;
&lt;P&gt;See OPAQUE option in BEGINGRAPH.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 20:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338574#M11770</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-03-06T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338671#M11771</link>
      <description>&lt;P&gt;I am using SAS 9.4. Do you have a sample code that outputs the KM graph with transparent background?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 04:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338671#M11771</guid>
      <dc:creator>MiraKr_</dc:creator>
      <dc:date>2017-03-07T04:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338800#M11775</link>
      <description>&lt;P&gt;If you have &lt;STRONG&gt;SAS 9.40M3 (M3 is important)&lt;/STRONG&gt;, you can do one of the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change the PROC Lifetest template.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Find the name of the template using ODS TRACE on;&lt;/LI&gt;
&lt;LI&gt;Then update the template to make the background and wall transparent.&lt;/LI&gt;
&lt;LI&gt;Rerun your proc lifetest program.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, run the lifetest procedure and get the data saved to a sas data set using ODS OUTPUT.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run your own SGPLOT program to create the Survival plot using program below.&lt;/LI&gt;
&lt;LI&gt;Note the NOOPAQUE and NOWALL options on the SGPLOT procedure statement.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*--Get survival plot data from LIFETEST procedure--*/&lt;BR /&gt;ods graphics on;&lt;BR /&gt;ods output Survivalplot=SurvivalPlotData;&lt;BR /&gt;proc lifetest data=sashelp.BMT plots=survival(atrisk=0 to 2500 by 500);&lt;BR /&gt; time T * Status(0);&lt;BR /&gt; strata Group / test=logrank adjust=sidak;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*--Survival Plot with outer Risk Table using AxisTable Transparent--*/&lt;BR /&gt;ods html close;&lt;BR /&gt;ods graphics / reset imagename='Survival Plot_SG_V94_Trans';&lt;BR /&gt;title 'Product-Limit Survival Estimates';&lt;BR /&gt;title2 h=0.8 'With Number of AML Subjects at Risk';&lt;BR /&gt;proc sgplot data=SurvivalPlotData &lt;STRONG&gt;noopaque nowall;&lt;/STRONG&gt;&lt;BR /&gt; step x=time y=survival / group=stratum lineattrs=(pattern=solid) name='s';&lt;BR /&gt; scatter x=time y=censored / markerattrs=(symbol=plus) name='c';&lt;BR /&gt; scatter x=time y=censored / markerattrs=(symbol=plus) GROUP=stratum;&lt;BR /&gt; xaxistable atrisk / x=tatrisk location=outside class=stratum colorgroup=stratum;&lt;BR /&gt; keylegend 'c' / location=inside position=topright;&lt;BR /&gt; keylegend 's';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 14:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338800#M11775</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-03-07T14:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338810#M11776</link>
      <description>&lt;P&gt;Thank you&amp;nbsp; &lt;SPAN class="login-bold"&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856" target="_self"&gt;Sanjay_SAS&lt;/A&gt;! I tried running this code, but I guess I do not have M3 because I got an error message that the "noopaque" option is unrecognized. Is M3 something that can be dowloaded or do I have to purchase it separately?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Mira&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 14:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338810#M11776</guid>
      <dc:creator>MiraKr_</dc:creator>
      <dc:date>2017-03-07T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting KM curve with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338833#M11778</link>
      <description>&lt;P&gt;I believe you (or your company) can upgrade to a new maintenance release.&lt;/P&gt;
&lt;P&gt;Contact &lt;A href="mailto:contracts@sas.com" target="_blank"&gt;contracts@sas.com&lt;/A&gt;, or, call our customer service line 919-677-8003.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 15:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Outputting-KM-curve-with-transparent-background/m-p/338833#M11778</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-03-07T15:28:03Z</dc:date>
    </item>
  </channel>
</rss>

