- Usually I prefer to get a dataset of estimates for the plot, then use PROC SGPLOT/GPLOT, R!, or MS Excel plot those estimates.
- Or, modify the template of a statistic plot following the steps:
- Turn on the trace function: "ODS TRACE ON;"; run the PROC XXX; then find the name of default template (such as 'Stat.Lifetest.Graphics.cifPlot'); then "ODS TRACE OFF;"
- Print out the template: "PROC TEMPLATE; SOURCE Stat.Lifetest.Graphics.cifPlot; RUN;"
- Copy the definition from the log window
- Paste it in underscore part: "PROC TEMPLATE; _________; RUN;" and modify the definition part you are interested in, and run it
- Run the PROC XXX again.
- After done: run "PROC TEMPLATE; DELETE Stat.Lifetest.Graphics.cifPlot; RUN;" to set the template as the default format.
- SAS/STAT Document 9.3, 14.3:
- ODS Graphics Template Modification
- Example 22.3 Customizing Survival Plots
- Example 22.5 Customizing Axes and Reference Lines
- SAS/STAT 14.1: Customizing the Kaplan-Meier Survival Plot
- May use the "Tools -> ODS Graphics Editor" to edit these plots after you get them. It's better use SGE format by setting "ODS LISTING SGE=ON; ODS HTML SGE=ON;"
- Slaughter (2010).Using PROC SGPLOT for Quick High-Quality Graphs
- Amruthnath (2013). PROC SGPLOT over PROC GPLOT
- Kuhfeld (2013). Creating and customizing the Kaplan-Meier survival plot in PROC LIFETEST large graphics
- Zender (2011). The Greatest Hits: ODS Essentials Every User Should Know
- Zender (2009). Tiptoe through the Templates
- Smith (2007). The Output Delivery System (ODS) from Scratch
- Wicklin (2012): How to get data values out of ODS graphics
ODS TRACE ON;
ODS OUTPUT Histogram=HIST;
PROC UNIVARIATE DATA=SAShelp.cars NOPRINT;
VAR invoice;
HISTOGRAM invoice;
RUN;