SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2: Graph Template Language Reference

Previous | Next
Overview

Graph Template Language

The SAS/GRAPH Graph Template Language (GTL) is an extension to the Output Delivery System (ODS) that enables you to create sophisticated analytical graphics that are not available from traditional SAS/GRAPH procedure statements. For example, using the GTL you can generate Model-Fit plots, Distribution Plots, Comparative plots, Prediction Plots, and more.

The graphics produced by the GTL are generated by template definitions that control the graph format and appearance and specify the variable roles to represent in the graph display. The graphs can then be rendered by associating the templates with a data source.

  • The GTL templates are defined in PROC TEMPLATE. The GTL includes control statements that control program flow, layout statements that specify the arrangement of graph features, plot statements that request specific plot types (such as histograms and scatter plots), and text and legend statements that specify titles, footnotes, legends, and other text-based graph elements.

  • The GTL templates are rendered using the SGRENDER procedure, which specifies a data source that contains appropriate data values and the template to use for rendering the graph.
  • You can also use the GTL to create templates that modify the predefined templates that the SAS System delivers for use on the SAS statistical procedures. For information on modifying existing templates, refer to SAS/STAT User's Guide.

This manual provides a complete reference to the Graphics Template Language. For detailed usage information, consult the usage manual.


A Quick Example

Template Compilation

Runtime Actions

Previous | Next | Top of Page