Before you can customize a graph, you must determine which template is used to create the original graph. You can do this by submitting the ODS TRACE ON statement before the procedure statements that create the graph. The fully qualified template name is displayed in the SAS log. Here is an example:
ods trace on; ods graphics on; proc reg data=sashelp.class; model Weight = Height; run; quit;
The preceding statements create the following trace output, which provides information about both the graphs and tables produced by PROC REG:
Output Added: ------------- Name: NObs Label: Number of Observations Template: Stat.Reg.NObs Path: Reg.MODEL1.Fit.Weight.NObs ------------- Output Added: ------------- Name: ANOVA Label: Analysis of Variance Template: Stat.REG.ANOVA Path: Reg.MODEL1.Fit.Weight.ANOVA ------------- Output Added: ------------- Name: FitStatistics Label: Fit Statistics Template: Stat.REG.FitStatistics Path: Reg.MODEL1.Fit.Weight.FitStatistics ------------- Output Added: ------------- Name: ParameterEstimates Label: Parameter Estimates Template: Stat.REG.ParameterEstimates Path: Reg.MODEL1.Fit.Weight.ParameterEstimates ------------- Output Added: ------------- Name: DiagnosticsPanel Label: Fit Diagnostics Template: Stat.REG.Graphics.DiagnosticsPanel Path: Reg.MODEL1.ObswiseStats.Weight.DiagnosticPlots.DiagnosticsPanel ------------- Output Added: ------------- Name: ResidualPlot Label: Height Template: Stat.REG.Graphics.ResidualPlot Path: Reg.MODEL1.ObswiseStats.Weight.ResidualPlots.ResidualPlot ------------- Output Added: ------------- Name: FitPlot Label: Fit Plot Template: Stat.REG.Graphics.Fit Path: Reg.MODEL1.ObswiseStats.Weight.FitPlot -------------
This is also illustrated in Example 22.1 and the section The ODS Statement in ChapterĀ 20: Using the Output Delivery System.