Chapter Contents

Previous

Next
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

libname proclib 'SAS-data-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.;
   title 'Weekly Sales of Stoves';
   title2 'Compared to Target Sales of $1500';   
   title3 'K for Kreitz; L for LaGrange';
run;


Output
The plot uses the first letter of the value of Seller as the plotting symbol. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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