Language Reference |
PGRAF Call |
The PGRAF subroutine displays a low-resolution scatter plots, sometimes called a "line-printer plot".
The arguments to the PGRAF subroutine are as follows:
is an matrix of points.
is an character matrix of labels for each point. The PGRAF subroutine uses up to 8 characters per point. If id is a scalar (), then the same label is used for all of the points. The label is centered over the actual point location. If you do not specify id, 'x' is the default character for labeling the points.
is a character scalar or quoted literal that labels the axis (centered beneath the axis).
is a character scalar or quoted literal that labels the axis (printed vertically to the left of the axis).
is a character scalar or quoted literal printed above the graph.
The PGRAF subroutine produces a scatter plot suitable for display on a line printer or similar device.
The following statements specify a plotting symbol, axis labels, and a title to produce the plot shown.
xy={1 2, 3 3, 5 4, 6 2}; call pgraf(xy,"*","X","Y","Plot of X vs Y"); Plot of X vs Y | 4 + * | | | Y | 3 + * | | | | 2 + * * --+------+------+------+------+------+- 1.0 2.0 3.0 4.0 5.0 6.0 X
Copyright © SAS Institute, Inc. All Rights Reserved.