SAS Institute. The Power to Know

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

Previous | Next
Overview

Graphical Layouts

One of most powerful features of the GTL is the syntax built around hierarchical statement blocks called layouts . A layout determines

  • The overall organization of the graph -- whether it uses a overlay-type or a multi-cell display. A overlay-type layout superimposes all specified content elements into one plot area. A multi-cell layout arranges the specified contents into multiple rows and/or columns of cells (see "Basic Anatomy of an ODS Graph".
  • What statements are allowed in the block. Generally, layout blocks may contain plots, lines of text, a legend, or even another layout.
  • How the contained statements interact.

All GTL template definitions must contain at least one layout statement. Table 1.1 and Table 1.2 identify the overlay-type and multi-cell layouts; the sections that follow discuss the layout types in more detail.

Table 1.1: Overlay-type Layouts that Support Superimposition
Layout Description
OVERLAY 2D plots (see "Plot Classifications by Graphical Projection"), legends, text
OVERLAY3D 3D plots (see "Plot Classifications by Graphical Projection"), text
OVERLAYEQUATED 2D plots, legends, text, axes where the display unit of the X axis always equals the display unit of the Y axis
PROTOTYPE Simplified OVERLAY used in DATAPANEL and DATALATTICE
Table 1.2: Multi-cell Layouts in Rows and Columns of Cells
Layout Description
GRIDDED Basic grid of plots and text; all cells independent
LATTICE Externalized axes, headers, sidebars
DATALATTICE Data-driven number of cells; 1-2 classifiers
DATAPANEL Data-driven number of cells; n classifiers


The OVERLAY Layout

The GRIDDED Layout

The LATTICE Layout

The DATAPANEL Layout

The DATALATTICE Layout

Previous | Next | Top of Page