| TEMPLATE Procedure: Plot Statements (Experimental) |
Like an ODS table, style, or tagset definition, an ODS statistical graph definition is specified within the PROC TEMPLATE statements. The ODS statistical graph definition begins with a DEFINE STATGRAPH statement and ends with an END statement. The plot statements must be nested within a LAYOUT block. The following example shows the structure of an ODS statistical graph definition. In the following example, the SCATTERPLOT statement creates a scatter plot from input data while the LINEPARM statement adds a line to the scatter plot.
proc template; define statgraph name-of-graph definition; notes "template-documentation"; dynamic variables; mvar variables; nmvar variables; layout overlay; scatterplot x=column y=column / markersymbol=shape; lineparm slope=number yintercept=number; entrytitle="Your Title"; endlayout; end; run;