Hello,
Does anyone know how I can change the line attributes in PROC PHREG? I'd like to make my lines thicker.I tried editing the 'Stat.Phreg.Graphics.Survival' template which is used for producing survival plot but I couldn't find out which part of code is addressing the line attributes.
The codes for 'Stat.Phreg.Graphics.Survival' template:
proc template;
You can change it on the STEPPLOT statement using a linethicknessmax and min options?
stepplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX linethicknessmax=5 linethicknessmin=5 name="Survival";
I don't know what the units are so pretty much guess and test from that point would be my suggestion.
@Gelareh wrote:
Hello,
Does anyone know how I can change the line attributes in PROC PHREG? I'd like to make my lines thicker.I tried editing the 'Stat.Phreg.Graphics.Survival' template which is used for producing survival plot but I couldn't find out which part of code is addressing the line attributes.
The codes for 'Stat.Phreg.Graphics.Survival' template:
proc template;
define source Stat.Phreg.Graphics.Survival;define statgraph Stat.PHReg.Graphics.Survival;dynamic title1 title2 title3 title4 xviewMin xviewMax group groupIndex groupName plotCL plotHPD transparency piecewise _byline__bytitle_ _byfootnote_;BeginGraph;entrytitle TITLE1 TITLE3;entrytitle TITLE2 TITLE4 / textattrs=GRAPHVALUETEXT;layout overlay / xaxisopts=(linearopts=(viewmin=XVIEWMIN viewmax=XVIEWMAX)) yaxisopts=(label="Survival Probability"shortlabel="Survival" linearopts=(viewmin=0 viewmax=1 tickvaluelist=(0 .2 .4 .6 .8 1.0)));if (PLOTCL)bandplot LimitLower=LOWERSURVIVAL LimitUpper=UPPERSURVIVAL x=TIME / group=GROUP index=GROUPINDEX modelname="Survival"datatransparency=transparency;endif;if (PLOTHPD)bandplot LimitLower=LOWERHPDSURVIVAL LimitUpper=UPPERHPDSURVIVAL x=TIME / group=GROUP index=GROUPINDEX modelname="Survival" datatransparency=transparency;endif;if (EXISTS(PIECEWISE))seriesplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX name="Survival";elsestepplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX name="Survival";endif;if (EXISTS(GROUP))discretelegend "Survival" / location=outside title=GROUPNAME;endif;endlayout;if (_BYTITLE_)entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;elseif (_BYFOOTNOTE_)entryfootnote halign=left _BYLINE_;endif;endif;EndGraph;end;Thanks,Gelareh
You can change it on the STEPPLOT statement using a linethicknessmax and min options?
stepplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX linethicknessmax=5 linethicknessmin=5 name="Survival";
I don't know what the units are so pretty much guess and test from that point would be my suggestion.
@Gelareh wrote:
Hello,
Does anyone know how I can change the line attributes in PROC PHREG? I'd like to make my lines thicker.I tried editing the 'Stat.Phreg.Graphics.Survival' template which is used for producing survival plot but I couldn't find out which part of code is addressing the line attributes.
The codes for 'Stat.Phreg.Graphics.Survival' template:
proc template;
define source Stat.Phreg.Graphics.Survival;define statgraph Stat.PHReg.Graphics.Survival;dynamic title1 title2 title3 title4 xviewMin xviewMax group groupIndex groupName plotCL plotHPD transparency piecewise _byline__bytitle_ _byfootnote_;BeginGraph;entrytitle TITLE1 TITLE3;entrytitle TITLE2 TITLE4 / textattrs=GRAPHVALUETEXT;layout overlay / xaxisopts=(linearopts=(viewmin=XVIEWMIN viewmax=XVIEWMAX)) yaxisopts=(label="Survival Probability"shortlabel="Survival" linearopts=(viewmin=0 viewmax=1 tickvaluelist=(0 .2 .4 .6 .8 1.0)));if (PLOTCL)bandplot LimitLower=LOWERSURVIVAL LimitUpper=UPPERSURVIVAL x=TIME / group=GROUP index=GROUPINDEX modelname="Survival"datatransparency=transparency;endif;if (PLOTHPD)bandplot LimitLower=LOWERHPDSURVIVAL LimitUpper=UPPERHPDSURVIVAL x=TIME / group=GROUP index=GROUPINDEX modelname="Survival" datatransparency=transparency;endif;if (EXISTS(PIECEWISE))seriesplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX name="Survival";elsestepplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX name="Survival";endif;if (EXISTS(GROUP))discretelegend "Survival" / location=outside title=GROUPNAME;endif;endlayout;if (_BYTITLE_)entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;elseif (_BYFOOTNOTE_)entryfootnote halign=left _BYLINE_;endif;endif;EndGraph;end;Thanks,Gelareh
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.