<?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 do I change the title size in a graph (proc lifetest)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-title-size-in-a-graph-proc-lifetest/m-p/505361#M135324</link>
    <description>&lt;P&gt;Try using PROC SGPLOT on the output data.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2018 21:24:11 GMT</pubDate>
    <dc:creator>tamhane</dc:creator>
    <dc:date>2018-10-17T21:24:11Z</dc:date>
    <item>
      <title>How do I change the title size in a graph (proc lifetest)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-title-size-in-a-graph-proc-lifetest/m-p/485535#M126161</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to change the title size for a K-M graph, and cannot seem to get it right. I am using&lt;/P&gt;&lt;P&gt;%SurvivalTemplateRestore&lt;BR /&gt;to change the title and axis and created a style template to change the line colors/style.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;adding %let tatters = textattrs=(size=20pt weight=bold) did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to increase the font size? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Angela&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
infile 'http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html'
device=url;
file 'junk.junk';
retain pre 0;
input;
if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;
if pre then put _infile_;
if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;
run;
%inc 'junk.junk' / nosource;

%SurvivalTemplateRestore

%let TitleText0 = "Survival"; /* Change the title. */
%let gridopts = autoalign=(TOPRIGHT BOTTOMLEFT TOP BOTTOM)
                border=true BackgroundColor=GraphWalls:Color Opaque=true;
layout gridded / rows=2 &amp;amp;gridopts;
%let tips = rolename=(_tip1= ATRISK _tip2=EVENT)
tiplabel=(_tip1="Number at Risk" _tip2="Observed Events")
tip=(x y _tip1 _tip2) lineattrs=(thickness=2.5);
%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;
%let TitleText2 = &amp;amp;titletext0;
%let yOptions   = label="Survival Probability"
                  shortlabel="Survival"
                  labelattrs=(size=16pt weight=bold)
                  tickvalueattrs=(size=16pt)
                  linearopts=(viewmin=0 viewmax=1
                              tickvaluelist=(0 .2 .4 .6 .8 1.0));

%let xOptions = 
 labelattrs=(size=16pt weight=bold)
                  tickvalueattrs=(size=16pt)
linearopts=(viewmin=0 viewmax=108
tickvaluelist=(0 12 24 36 48 60 72 84 96 108));

%SurvivalTemplate 	/* Compile the templates with */
					/* the new title. */

proc template;
  define style styles.mystyle;

    style GraphData1 from GraphData1 /
          contrastcolor=blue linestyle=1;
    style GraphData2 from GraphData2 /
          contrastcolor=dark orange linestyle=1;
   style GraphData3 from GraphData3 /
          contrastcolor=blue linestyle=4;
  style GraphData4 from GraphData4 /
          contrastcolor=dark orange linestyle=4;
    style GraphData5 from GraphData5 /
          contrastcolor=blue linestyle=2;
   style GraphData6 from GraphData6 /
          contrastcolor=dark orange linestyle=2;
  end;
run;

ods html style=mystyle ;
proc lifetest data=test outsurv=surv plots=survival (nocensor) maxtime=108;
	time surv*censor(1);
	strata  group/order=internal;
	label  group='';
	label  surv='Survival';

	format  group grpf.;

run;
ods html close;

%SurvivalTemplateRestore
proc template; /* Restore the default templates. */
delete Stat.Lifetest.Graphics.ProductLimitSurvival / store=sasuser.templat;
delete Stat.Lifetest.Graphics.ProductLimitSurvival2 / store=sasuser.templat;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 17:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-title-size-in-a-graph-proc-lifetest/m-p/485535#M126161</guid>
      <dc:creator>at16</dc:creator>
      <dc:date>2018-08-09T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the title size in a graph (proc lifetest)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-title-size-in-a-graph-proc-lifetest/m-p/505361#M135324</link>
      <description>&lt;P&gt;Try using PROC SGPLOT on the output data.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 21:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-title-size-in-a-graph-proc-lifetest/m-p/505361#M135324</guid>
      <dc:creator>tamhane</dc:creator>
      <dc:date>2018-10-17T21:24:11Z</dc:date>
    </item>
  </channel>
</rss>

