Previous Page | Next Page

The TIMEPLOT Procedure

Example 5: Showing Multiple Observations on One Line of a Plot


Procedure features:

CLASS statement

PLOT statement arguments:

creating multiple plots

NOSYMNAME

OVPCHAR=

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;
   class month week;
 Note about code
   plot stove=seller  / pos=25 ovpchar='!';
   plot icebox=seller / pos=25 ovpchar='!' nosymname;
 Note about code
   format stove icebox dollar10.2 month monthfmt.;
 Note about code
   title 'Weekly Appliance Sales for the First Quarter';
run;

Output

                  Weekly Appliance Sales for the First Quarter                 1

                Seller :Kreitz  Seller :LeGrange
   Month  Week           Stove             Stove      min                    max
                                                      $184.24          $2,910.37
                                                     *-------------------------*
January      1   $1,312.61         $728.13           |     L    K              |
January      2     $222.35         $184.24           |!                        |
January      3   $2,263.33         $267.35           | L                 K     |
January      4   $1,787.45         $274.51           | L             K         |
February     1   $2,910.37         $397.98           |  L                     K|
February     2     $819.69       $2,242.24           |      K            L     |
                                                     *-------------------------*
                  Weekly Appliance Sales for the First Quarter                 2

                        Kreitz          LeGrange
   Month  Week          Icebox            Icebox      min                    max
                                                      $2,520.04        $3,550.43
                                                     *-------------------------*
January      1   $3,450.94       $2,520.04           |L                      K |
January      2   $3,240.67       $2,675.42           |    L            K       |
January      3   $3,160.45       $2,805.35           |       L        K        |
January      4   $3,400.24       $2,870.61           |         L           K   |
February     1   $3,550.43       $2,730.09           |     L                  K|
February     2   $3,385.74       $2,670.93           |    L                K   |
                                                     *-------------------------*

Previous Page | Next Page | Top of Page