Previous Page | Next Page

The TIMEPLOT Procedure

Example 3: Using a Variable for a Plotting Symbol


Procedure features:

ID statement

PLOT statement arguments:

using a variable as the plotting symbol

JOINREF

NPP

REF=

REFCHAR=

Data set: SALES
Formats: MONTHFMT.

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 timeplot data=sales;
   plot stove=seller /
 Note about code
                       npp
 Note about code
                       ref=1500 refchar=':'
 Note about code
                       joinref
 Note about code
                       axis=100 to 3000 by 50;
 Note about code
   id month week;
 Note about code
   format month monthfmt.;
 Note about code
   title 'Weekly Sales of Stoves';
   title2 'Compared to Target Sales of $1500';   
   title3 'K for Kreitz; L for LeGrange';
run;

Output

 Note about figure
                             Weekly Sales of Stoves                            1
                       Compared to Target Sales of $1500
                          K for Kreitz; L for LeGrange

   Month   Week     min                                                      max
                    100                                                     3000
                   *-----------------------------------------------------------*
January       1    |                        K---:                              |
January       1    |             L--------------:                              |
January       2    |  K-------------------------:                              |
January       2    |  L-------------------------:                              |
January       3    |                            :--------------K               |
January       3    |   L------------------------:                              |
January       4    |                            :-----K                        |
January       4    |   L------------------------:                              |
February      1    |                            :---------------------------K  |
February      1    |      L---------------------:                              |
February      2    |              K-------------:                              |
February      2    |                            :--------------L               |
                   *-----------------------------------------------------------*

Previous Page | Next Page | Top of Page