Chapter Contents

Previous

Next
The TIMEPLOT Procedure

Example 1: Plotting a Single Variable


Procedure features:
ID statement
PLOT statement arguments:
simple plot request
POS=

This example


Program

options nodate pageno=1 linesize=80 pagesize=60;
 Note about code
data sales;
   input Month Week Seller $ Icebox Stove;
   datalines;
1 1 Kreitz   3450.94 1312.61
1 1 LeGrange 2520.04  728.13
1 2 Kreitz   3240.67  222.35
1 2 LeGrange 2675.42  184.24
1 3 Kreitz   3160.45 2263.33
1 3 LeGrange 2805.35  267.35
1 4 Kreitz   3400.24 1787.45
1 4 LeGrange 2870.61  274.51
2 1 Kreitz   3550.43 2910.37
2 1 LeGrange 2730.09  397.98
2 2 Kreitz   3385.74  819.69
2 2 LeGrange 2670.93 2242.24
;
 Note about code
proc timeplot data=sales;
   plot icebox / pos=50;
 Note about code
   id month week;
 Note about code
   title 'Weekly Sales of Iceboxes';
   title2 'for the';
   title3 'First Six Weeks of the Year';
run;


Output
The column headers in the listing are the variables' names. The plot uses the default plotting symbol, which is the first character of the plot variable's name. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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