205Survival Plots
ods select all;
ods graphics/reset = all width = 8in height = 6in noborder
OUTPUTFMT = EMF imagename = “FigSG_11_3”;
title1 “Figure11.3. Survival Plots Produced in Proc SGPLOT”;
title2 “- with the at-risk table displayed at the bottom
ofthe grap in diffrenet axis”;
footnote “&pgmpth.”;
proc sgplot data = Survivalplot2 sganno = anno_label;
* Use the step plot with curvelabels for label purpose;
step x = time y = survival/group = stratum curvelabel
lineattrs = (thickness = 2) name = ‘survival’;
* Draw censored observations;
scatter x = time y = censored/markerattrs = (symbol = plus
size = 10) name = ‘censored’;
scatter x = time y = censored/markerattrs = (symbol = plus
size = 10) GROUP = stratum;
* Draw the At Risk values ...