Previous Page | Next Page

The TIMEPLOT Procedure

Example 1: Plotting a Single Variable


Procedure features:

ID statement

PLOT statement arguments:

simple plot request

POS=


This example


Program

 Note about code
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

 Note about figure
                            Weekly Sales of Iceboxes                           1
                                    for the
                          First Six Weeks of the Year

Month    Week     Icebox     min                                             max
                             2520.04                                     3550.43
                            *--------------------------------------------------*
    1       1    3450.94    |                                             I    |
    1       1    2520.04    |I                                                 |
    1       2    3240.67    |                                   I              |
    1       2    2675.42    |        I                                         |
    1       3    3160.45    |                               I                  |
    1       3    2805.35    |              I                                   |
    1       4    3400.24    |                                           I      |
    1       4    2870.61    |                 I                                |
    2       1    3550.43    |                                                 I|
    2       1    2730.09    |          I                                       |
    2       2    3385.74    |                                          I       |
    2       2    2670.93    |       I                                          |
                            *--------------------------------------------------*

Previous Page | Next Page | Top of Page