How does one change the font size in legend in KM plot in ods output. Creating a new style definition using the TEMPLATE procedure, but even when I customized the style, it did not seem to help. here is my code, /*km curves*/ proc template; define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival ; dynamic NStrata xName plotAtRisk plotCL plotHW plotEP labelCL labelHW labelEP maxTime StratumID classAtRisk plotBand plotTest GroupName yMin Transparency SecondTitle TestName pValue; BeginGraph / datacontrastcolors=(Black LTGRAY) datalinepatterns=(1) border=false ; layout lattice / rows=2 columns=1 columndatarange=unionall border=false rowweights=(.85 .15); layout overlay / border=false xaxisopts=(shortlabel=XNAME offsetmin=.05 labelattrs=(size=12pt weight=bold) tickvalueattrs=( FAMILY="Helvetica" size=12pt weight=bold) linearopts=(viewmax=MAXTIME tickvaluelist=(0 50 100 150 200 250 ) )) yaxisopts=(label= "survival" shortlabel="Survival" labelattrs=(size=16pt weight=bold) tickvalueattrs=(size=12pt weight=bold) linearopts=(viewmin=0 viewmax=1 tickvaluelist=(0 .2 .4 .6 .8 1.0))) ; stepplot y=SURVIVAL x=TIME / group=STRATUM index=STRATUMNUM name="Survival" rolename=(_tip1=ATRISK _tip2=EVENT) tip=(y x Time _tip1 _tip2) LINEATTRS=(THICKNESS=5 PATTERN=1 ) ; DiscreteLegend "Survival" / location=inside autoalign=(TOPRIGHT BOTTOMLEFT TOP BOTTOM) across=1 border=false ; endlayout; endlayout; EndGraph; end; run; proc template; define style styles.mystyle; parent=STYLES.DEFAULT; style GraphAxisLines from GraphAxisLines / linethickness = 3px ; style GraphAxisLines from GraphAxisLines / ContrastColor =Black ; style graphfonts from graphfonts / 'GraphLabelFont' = ("<sans-serif>, <MTsans-serif>",16pt,bold); class GraphFonts / 'GraphLabelFont'=("Helvetica", 18pt, bold) 'GraphValueFont'=("Helvetica", 15pt, bold) 'GraphTitleFont'=("Helvetica", 25pt, bold); end; run; I was able to change the font to bold but not the size and the family for font. . Thank you, Jade
... View more