Proc plot can be used to produce rather crude graphical output on any printer. High quality graphics are produced with proc gplot.
Suppose the data set airline contains the number of air
passenger miles flown each year in the variable miles and also
the variable year. The commands
proc plot data=airline;
plot miles*year;
run;
produces a plot of the data. If the variable revenue contains
revenue data for each year, two seperate plots can be obtained
by
proc plot data=airline;
plot miles*year;
plot revenue*year;
run;
This could also be done using
proc plot data=airline;
plot miles*year revenue*year;
run;
A plot with both miles and revenue on one graph is obtained
using the /overlay option.
proc plot data=airline;
plot miles*year revenue*year /overlay;
run;
For further details, see the online help or the SAS Procedures Guide.
Copyright © 1997 by Jerry Alan Veeh. All rights reserved.