Plotting One Set of Variables

Understanding the PLOT Statement

The PLOT procedure produces two-dimensional graphs that plot one variable against another within a set of coordinate axes. The coordinates of each point on the plot correspond to the values of two variables. Graphs are automatically scaled to the values of your data, although you can control the scale by specifying the coordinate axes.
You can create a simple two-dimensional plot for one set of measures by using the following PLOT statement:
PROC PLOT <DATA=SAS-data-set>;
PLOT vertical*horizontal;
where vertical is the name of the variable to plot on the vertical axis and horizontal is the name of the variable to plot on the horizontal axis.
By default, PROC PLOT selects ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.