The following statements use the PLOT procedure in Base SAS to plot CPI in the USCPI data set against DATE. (The data set plotted contains more observations than shown in the previous examples.) The plotting character used is a plus sign (+).
title "Plot of USCPI Data";
proc plot data=uscpi;
plot cpi * date = '+' / vaxis= 129 to 137 by 1;
run;
The plot is shown in Figure 3.13.
Figure 3.13
Plot of Monthly CPI Over Time
Plot of cpi*date. Symbol used is '+'.
137 +
U |
S | +
136 + +
C | +
o | +
n 135 + +
s | + +
u |
m 134 +
e | + + +
r |
133 +
P | +
r |
i 132 +
c | +
e |
131 +
I |
n | +
d 130 + +
e |
x |
129 +
--+-------------+-------------+-------------+-------------+-------------+-
MAY1990 AUG1990 DEC1990 MAR1991 JUN1991 OCT1991
date
|
Copyright © SAS Institute Inc. All rights reserved.