Chapter Contents

Previous

Next
The GPLOT Procedure

PROC GPLOT Statement


Identifies the data set that contains the plot variables. Optionally specifies uniform axis scaling for all graphs as well as annotation and an output catalog.

Requirements: An input data set is required.



Syntax

PROC GPLOT <DATA=input-data-set>
<ANNOTATE=Annotate-data-set>
<GOUT=<libref.>output-catalog>
<IMAGEMAP=output-data-set>
<UNIFORM>;


Options

ANNOTATE=Annotate-data-set
ANNO=Annotate-data-set
specifies a data set to annotate all graphs that are produced by the GPLOT procedure. To annotate individual graphs, use ANNOTATE= in the action statement.
See also: The Annotate Data Set

DATA=input-data-set
specifies the SAS data set that contains the variables to plot. By default, the procedure uses the most recently created SAS data set.
See also: SAS Data Sets and About the Input Data Set

GOUT=< libref. >output-catalog
specifies the SAS catalog in which to save the graphics output that is produced by the GPLOT procedure. If you omit the libref, SAS/GRAPH looks for the catalog in the temporary library called WORK and creates the catalog if it does not exist.
See also: Storing Graphics Output in SAS Catalogs

IMAGEMAP=output-data-set
creates a SAS data set that contains information that can be used to implement a drill-down plot. IMAGEMAP= can be used only if the PLOT or PLOT2 statements are used, and the PLOT or PLOT2 statement must use the HTML= option or the HTML_LEGEND= option or both.

The Imagemap information is used in the HTML file that references the graph. It determines where the drill-down hot zones are, and it links those hot zones to other files or images. If HTML= is used on the PLOT or PLOT2 statement, the plot points are defined as hot zones, unless AREA= is also used, in which case there are not plot points and the areas between plot lines are defined as hot zones. If HTML_LEGEND= is used, the legend symbols are defined as hot zones. Information for the links is stored in the variables referenced by the HTML= and HTML_LEGEND= options.
See also: Customizing Web Pages for Drill-down Graphs

UNIFORM
specifies that the same axis scaling is used for all graphs that are produced by the procedure. By default, the range of axis values for each axis is based on the minimum and maximum values in the data and, therefore, may vary from graph to graph and among BY groups. Using the UNIFORM option forces the value range for each axis to be the same for all graphs. Thus, if the procedure produces multiple graphs with both left and right vertical axes, the UNIFORM option scales all of the left axes the same and all of the right axes the same, based on the minimum and maximum data values.

In addition, UNIFORM forces the assignment of SYMBOL statements for the category variable without regard to the BY-group variable, and, if a legend is generated, makes the legend the same across graphs.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.