Previous Page | Next Page

The TIMEPLOT Procedure

Example 2: Customizing an Axis and a Plotting Symbol


Procedure features:

ID statement

PLOT statement arguments:

using a plotting symbol

AXIS=

Other features:

LABEL statement

PROC FORMAT

SAS system options:

FMTSEARCH=

Data set: SALES

This example


Program

 Note about code
libname proclib 'SAS-library';
 Note about code
options nodate pageno=1 linesize=80 pagesize=60 
        fmtsearch=(proclib);
 Note about code
proc format library=proclib;
   value monthfmt 1='January'
                 2='February';
run;
 Note about code
proc timeplot data=sales;
   plot icebox='R' / axis=2500 to 3600 by 25;
 Note about code
   id month week;
 Note about code
   label icebox='Refrigerator';
        
 Note about code
   format month monthfmt.;
 Note about code
   title 'Weekly Sales of Refrigerators';
   title2 'for the';
   title3 'First Six Weeks of the Year';
run;

Output

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

   Month   Week   Refrigerator    min                                        max
                                  2500                                      3600
                                 *---------------------------------------------*
January       1        3450.94   |                                      R      |
January       1        2520.04   | R                                           |
January       2        3240.67   |                              R              |
January       2        2675.42   |       R                                     |
January       3        3160.45   |                          R                  |
January       3        2805.35   |            R                                |
January       4        3400.24   |                                    R        |
January       4        2870.61   |               R                             |
February      1        3550.43   |                                          R  |
February      1        2730.09   |         R                                   |
February      2        3385.74   |                                   R         |
February      2        2670.93   |       R                                     |
                                 *---------------------------------------------*

Previous Page | Next Page | Top of Page