Chapter Contents

Previous

Next
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

libname proclib 'SAS-data-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.;
   title 'Weekly Sales of Refrigerators';
   title2 'for the';
   title3 'First Six Weeks of the Year';
run;


Output
The column headers in the listing are the variables' names (for Month and Week, which have no labels) and the variable's label (for Icebox, which has a label). The plotting symbol is R (for Refrigerator). [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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