SAS Institute. The Power to Know
TEMPLATE Procedure: ODS Graphics Overview (Experimental)

ODS Graphics Syntax: TEMPLATE Procedure


PROC TEMPLATE;
DEFINE STATGRAPH name-of-graph-definition;
declaration-statements;
layout-statements;
plot-statements;
text-statements;
END;

ODS Statistical Graph Declaration Statements
Declaration statements specify conditional or interative flow of control.
Statements Description
DYNAMIC Defines a symbol that references a value that the data component supplies from the procedure or DATA step.
MVAR Defines a symbol that references a character macro variable.
NMVAR Defines a symbol that references a numeric macro variable.
NOTES Provides information about the ODS statistical graph.

ODS Statistical Graph Layout Statements
Layout statements specify the arrangement of the component of the graph.
Statements Description
LAYOUT GRIDDED Defines the properties of a container such as the column and row structure, the column and row order, and the background color.
LAYOUT LATTICE Specifies data merging, positioning, and alignment of a grid of graphs.
LAYOUT OVERLAY Specifies that two or more components may occupy the same area, but do not share data scaling. The components are drawn in the order in which they are specified with the last component on top.

ODS Statistical Graph Plot Statements
Plot statements specify commonly used graphical displays.
Statements Description
BAND Displays bands for statistical limits, and typically is used to add confidence or prediction bands to a plot.
BANDPLOT Displays bands for statistical limits, and typically is used to create a confidence or prediction band plot.
BARCHARTPARM Displays bars representing frequencies or weights specified by parameters, and typically is used to create a bar chart.
BARPARM Displays bars representing frequencies or weights specified by parameters, and typically is used to add a bar chart to a plot.
BIHISTOGRAMPARM Displays a bivariate histogram of two variables, X and Y, where binned values of the X and Y variables and bin frequency counts are provided, and typically is used to create a bivariate histogram.
BIHISTOPARM Displays a bivariate histogram of two variables, X and Y, where binned values of the X and Y variables and bin frequency counts are provided, and typically is used to add a bivariate histogram to a surface plot.
BOX Displays side-by-side box-and-whisker plots computed from input data, and typically is used to add a box plot to a plot.
BOXPARM Displays side-by-side box-and-whisker plots specified by summary statistics, and typically is used to add a box plot to a plot.
BOXPLOT Displays side-by-side box-and-whisker plots computed from input data, and typically is used to create a box plot.
BOXPLOTPARM Displays side-by-side box-and-whisker plots specified by summary statistics, and typically is used to create a box plot.
CONTOURPARM Displays a contour plot representing a response variable evaluated over a grid of X and Y values, and typically is used to add a contour of a bivariate density estimate to a scatter plot.
CONTOURPLOTPARM Displays a contour plot representing a response variable evaluated over a grid of X and Y values, and typically is used to create a contour plot of a bivariate density estimate.
DENSITY Displays a univariate probability density curve computed from input data, and typically is used to add normal density curves and non-parametric kernel density curves to a histogram.
DENSITYPLOT Displays a univariate probability density curve computed from input data, and typically is used to create normal density curves and non-parametric kernel density curves.
ELLIPSE Displays an ellipse computed from input data, and typically is used to add a confidence ellipse to a scatter plot.
ELLIPSEPARM Displays an ellipse specified by slope and axes parameters, and typically is used to add a confidence ellipse to a scatter plot.
FRINGE Displays data values as a fringe on the X axis of an X-Y plot, and typically is used to enhance a histogram or a density plot.
HISTO Displays a univariate histogram computed from input data, and typically is used to add a histogram to a density plot.
HISTOGRAM Displays a univariate histogram computed from input data, and typically is used to create a histogram.
HISTOGRAMPARM Displays a univariate histogram for specified values of bin midpoints and bin frequencies, and typically is used to create a histogram.
HISTOPARM Displays a univariate histogram for specified values of bin midpoints and bin frequencies, and typically is used to add a histogram to a density plot.
LINEPARM Displays a straight line specified by slope and intercept parameters, and typically is used to add a line to a plot.
NEEDLE Displays observations as points connected to the X-axis by vertical line segments, and typically is used to add auto-correlation functions and residual plots to a plot.
NEEDLEPLOT Displays observations as points connected to the X-axis by vertical line segments, and typically is used to create auto-correlation functions and residual plots.
SCATTER Displays a scatter plot of input data, and typically is used to add a scatter plot to a plot.
SCATTERPLOT Displays a scatter plot of input data, and typically is used to create a scatter plot.
SCATTERPLOTMATRIX Displays a matrix of all pairwise scatter plots of the specified variables, and typically is used to create a scatter plot matrix.
SERIES Displays a series of points using line segments to connect consecutive observations of input data, and typically is used to add a time series to a plot.
SERIESPLOT Displays a series of points using line segments to connect consecutive observations of input data, and typically is used to create a time series plot.
STEP Displays the relationship between two variables using horizontal lines (steps) that are interpolated with a step function, and typically is used to add a step plot to a scatter plot.
STEPPLOT Displays the relationship between two variables using horizontal lines (steps) that are interpolated with a step function, and typically is used to create a step plot.
SURFACE Displays a three-dimensional surface representing a response variable evaluated over a grid of X and Y values, and typically is used to add a surface plot to a bivariate histogram.
SURFACEPLOT Displays a three-dimensional surface representing a response variable evaluated over a grid of X and Y values, and typically is used to create a surface plot.
VECTOR Displays a two-dimensional plot of observations using lines drawn from a central point, and typically is used to add a vector plot to a scatter plot.
VECTORPLOT Displays a two-dimensional plot of observations using lines drawn from a central point, and typically is used to create a vector plot.

ODS Statistical Graph Text Statements
Text statements specify the text for the graph.
Statements Description
DISCRETELEGEND Specifies a legend.
ENTRY Inserts text anywhere in the graphical presentation.
ENTRYFOOTNOTE Specifies footnotes with default fonts that are defined by the GraphFootnote element in the style.
ENTRYTITLE Specifies titles with default fonts that are defined by the GraphTitle element in the style.
GRADIENTLEGEND Specifies a gradient legend.


Previous Page | Next Page | Top of Page