Modifying the ODS Template for Survival Plots |
PROC LIFETEST, like other statistical procedures, provides a PLOTS= option and other options for modifying its output without requiring template changes. Those options are sufficient for most purposes. When those options are not suficient, you can change a graph by changing the graph template. Customizing Survival Plots in Chapter 22, ODS Graphics Template Modification, shows how to find the name of the template, display the template by using PROC TEMPLATE and the SOURCE statement, and make a series of template changes.
The example consists of the following parts:
Modifying the plot title: This part identifies the template, displays it, explains its overall structure, and modifies the titles. See the section Modifying the Plot Title in Chapter 22, ODS Graphics Template Modification.
Modifying the axes: This part explains the options that control the X and Y axes, and shows how to modify the ticks and axis labels. See the section Modifying the Axes in Chapter 22, ODS Graphics Template Modification.
Creating a template that is easy to modify: This part shows how you can reorganize and modularize the entire template to make it easy to customize in various ways. See the section Creating a Template That is Easy to Modify in Chapter 22, ODS Graphics Template Modification.
Modifying the plot title in the revised template: This part shows how to change the title by using the revised template. See the section Modifying the Plot Title in the Revised Template in Chapter 22, ODS Graphics Template Modification.
Modifying the legend and inset table: This part removes the small inset table and moves the legend inside the graph. The censoring information above the X axis is moved outside the graph. See the section Modifying the Legend and Inset Table in Chapter 22, ODS Graphics Template Modification.
Modifying the layout and adding a new inset table: This part moves the event and total information out of the graph and the legend in. It also moves the small inset table. See the section Modifying the Layout and Adding a New Inset Table in Chapter 22, ODS Graphics Template Modification.
Changing line styles: This part shows how to modify a style template to change line colors and styles. See the section Changing Line Styles in Chapter 22, ODS Graphics Template Modification.
Changing fonts: This part shows how to change the graph template and the style template to change some of the fonts that are used in the graph. See the section Changing Fonts in Chapter 22, ODS Graphics Template Modification.
Changing how censored data are displayed: This part shows how to change or remove the plus marks that are used to display censored observations. See the section Changing How Censored Data Are Displayed in Chapter 22, ODS Graphics Template Modification.
Displaying survival summary statistics: This part adds to the graph a table with event, censoring, and survival information. See the section Displaying Survival Summary Statistics in Chapter 22, ODS Graphics Template Modification.