Chapter Contents

Previous

Next
The TIMEPLOT Procedure

Example 4: Superimposing Two Plots


Procedure features:
PROC TIMEPLOT statement options:
MAXDEC=
PLOT statement arguments:
using two types of plot requests
OVERLAY
REF=MEAN(variable(s))
REVERSE
Data set: SALES

This example




Program

options nodate pageno=1 linesize=80 pagesize=60;
 Note about code
proc timeplot data=sales maxdec=0;
 Note about code
   plot stove=seller icebox='R' /

 Note about code
                                  overlay
 Note about code
                                  ref=mean(stove icebox)

 Note about code
                                  reverse;
 Note about code
   label icebox='Refrigerators';
   title 'Weekly Sales of Stoves and Refrigerators';
   title2 'for the';
   title3 'First Six Weeks of the Year';
run;


Output
The column header for the variable Icebox in the listing is the variable's label (Refrigerators). One plot uses the first letter of the value of Seller as the plotting symbol. The other plot uses the letter R. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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