<?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: How to edit x and y axis of a KM curve in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-edit-x-and-y-axis-of-a-KM-curve/m-p/457609#M23873</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've figured how to edit the x and y axis to my liking (coding below). By changing the y axis scale from 0 to 100 (%) rather than 0 to 1, the curves do not correspondingly 'resize' to the 0 to 100 scale so appears as a flat line...how do I rectify this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data solo2_date;&lt;BR /&gt;set solo2_date;&lt;BR /&gt;ttpfsmo=ttpfs/30.5;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS graphics on;&lt;BR /&gt;ods trace output;&lt;BR /&gt;proc lifetest data=solo2_date;&lt;BR /&gt;time ttpfsmo*pfs(0);&lt;BR /&gt;strata randtrt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS trace off;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;source Stat.Lifetest.Graphics.ProductLimitSurvival;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;options ls=95;&lt;BR /&gt;data _null_;&lt;BR /&gt;infile '&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html&lt;/A&gt;'&lt;BR /&gt;device=url;&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;infile '&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html&lt;/A&gt;'&lt;BR /&gt;device=url;&lt;BR /&gt;file 'junk.junk';&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;BR /&gt;%inc 'junk.junk' / nosource;&lt;/P&gt;&lt;P&gt;%SurvivalTemplateRestore&lt;BR /&gt;%SurvivalTemplate&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival / store=sasuser.templat;&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival2 / store=sasuser.templat;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* Make the macros and macro */&lt;BR /&gt;%SurvivalTemplateRestore /* variables available */&lt;BR /&gt;%let TitleText0 = "Kaplan-Meier Plot"; /* Change the title. */&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;BR /&gt;%SurvivalTemplate /* Compile the templates with */&lt;BR /&gt;/* the new title. */&lt;BR /&gt;proc lifetest data=solo2_date /* Perform the analysis and make */&lt;BR /&gt;plots=survival(cb=hw test); /* the graph. */&lt;BR /&gt;time ttpfsmo*pfs(0);&lt;BR /&gt;strata randtrt;&lt;BR /&gt;run;&lt;BR /&gt;%SurvivalTemplateRestore /* Restore the default macros */&lt;BR /&gt;/* and macro variables. */&lt;BR /&gt;proc template; /* Restore the default templates. */&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival / store=sasuser.templat;&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival2 / store=sasuser.templat;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%SurvivalTemplateRestore&lt;BR /&gt;%let yOptions = label="Progression-free survival (%%)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=100&lt;BR /&gt;tickvaluelist=(0 10 20 30 40 50 60 70 80 90 100));&lt;BR /&gt;%let xOptions= label="Time since randomisation (months)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=36&lt;BR /&gt;tickvaluelist=(0 3 6 9 12 15 18 21 24 27 30 33 36));&lt;BR /&gt;%SurvivalTemplate&lt;/P&gt;&lt;P&gt;proc lifetest data=solo2_date plots=survival (test atrisk (maxlen=8 outside (0.15)));&lt;BR /&gt;time ttpfsmo*pfs(0);&lt;BR /&gt;strata randtrt;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 06:05:15 GMT</pubDate>
    <dc:creator>lavienrose1</dc:creator>
    <dc:date>2018-04-26T06:05:15Z</dc:date>
    <item>
      <title>How to edit x and y axis of a KM curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-edit-x-and-y-axis-of-a-KM-curve/m-p/457604#M23872</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a beginner at SAS - I have produced a KM curve but having trouble editing the axes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the code below:&lt;/P&gt;&lt;P&gt;ODS graphics on;&lt;BR /&gt;ODS select survivalplot(persist) failureplot(persist);&lt;/P&gt;&lt;P&gt;PROC lifetest data=solo2_date plots=survival (test atrisk (maxlen=8 outside (0.15)));&lt;BR /&gt;Time ttpfs*pfs(0);&lt;BR /&gt;strata randtrt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives me the KM curve but I would like to edit :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;y axis - instead of 0.0 to 1.0 in increments of 0.2 , i would like 0 to 100 in increments of 20 (%)&lt;/LI&gt;&lt;LI&gt;x axis - instead of days 0 to 1000 in increments of 200 I would like in months in increments of 3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've tried reading other posts and guides but just not getting it right. Any help appreciated, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 04:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-edit-x-and-y-axis-of-a-KM-curve/m-p/457604#M23872</guid>
      <dc:creator>lavienrose1</dc:creator>
      <dc:date>2018-04-26T04:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit x and y axis of a KM curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-edit-x-and-y-axis-of-a-KM-curve/m-p/457609#M23873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've figured how to edit the x and y axis to my liking (coding below). By changing the y axis scale from 0 to 100 (%) rather than 0 to 1, the curves do not correspondingly 'resize' to the 0 to 100 scale so appears as a flat line...how do I rectify this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data solo2_date;&lt;BR /&gt;set solo2_date;&lt;BR /&gt;ttpfsmo=ttpfs/30.5;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS graphics on;&lt;BR /&gt;ods trace output;&lt;BR /&gt;proc lifetest data=solo2_date;&lt;BR /&gt;time ttpfsmo*pfs(0);&lt;BR /&gt;strata randtrt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS trace off;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;source Stat.Lifetest.Graphics.ProductLimitSurvival;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;options ls=95;&lt;BR /&gt;data _null_;&lt;BR /&gt;infile '&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html&lt;/A&gt;'&lt;BR /&gt;device=url;&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;infile '&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html&lt;/A&gt;'&lt;BR /&gt;device=url;&lt;BR /&gt;file 'junk.junk';&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;BR /&gt;%inc 'junk.junk' / nosource;&lt;/P&gt;&lt;P&gt;%SurvivalTemplateRestore&lt;BR /&gt;%SurvivalTemplate&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival / store=sasuser.templat;&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival2 / store=sasuser.templat;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* Make the macros and macro */&lt;BR /&gt;%SurvivalTemplateRestore /* variables available */&lt;BR /&gt;%let TitleText0 = "Kaplan-Meier Plot"; /* Change the title. */&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;BR /&gt;%SurvivalTemplate /* Compile the templates with */&lt;BR /&gt;/* the new title. */&lt;BR /&gt;proc lifetest data=solo2_date /* Perform the analysis and make */&lt;BR /&gt;plots=survival(cb=hw test); /* the graph. */&lt;BR /&gt;time ttpfsmo*pfs(0);&lt;BR /&gt;strata randtrt;&lt;BR /&gt;run;&lt;BR /&gt;%SurvivalTemplateRestore /* Restore the default macros */&lt;BR /&gt;/* and macro variables. */&lt;BR /&gt;proc template; /* Restore the default templates. */&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival / store=sasuser.templat;&lt;BR /&gt;delete Stat.Lifetest.Graphics.ProductLimitSurvival2 / store=sasuser.templat;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%SurvivalTemplateRestore&lt;BR /&gt;%let yOptions = label="Progression-free survival (%%)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=100&lt;BR /&gt;tickvaluelist=(0 10 20 30 40 50 60 70 80 90 100));&lt;BR /&gt;%let xOptions= label="Time since randomisation (months)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=36&lt;BR /&gt;tickvaluelist=(0 3 6 9 12 15 18 21 24 27 30 33 36));&lt;BR /&gt;%SurvivalTemplate&lt;/P&gt;&lt;P&gt;proc lifetest data=solo2_date plots=survival (test atrisk (maxlen=8 outside (0.15)));&lt;BR /&gt;time ttpfsmo*pfs(0);&lt;BR /&gt;strata randtrt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 06:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-edit-x-and-y-axis-of-a-KM-curve/m-p/457609#M23873</guid>
      <dc:creator>lavienrose1</dc:creator>
      <dc:date>2018-04-26T06:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit x and y axis of a KM curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-edit-x-and-y-axis-of-a-KM-curve/m-p/457610#M23874</link>
      <description>&lt;P&gt;Rather than changing from 0 to 100 see if you can apply a percent formst to the 0 to 1 scale.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 06:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-edit-x-and-y-axis-of-a-KM-curve/m-p/457610#M23874</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-26T06:17:33Z</dc:date>
    </item>
  </channel>
</rss>

