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
- specifies a variable to
use as the plotting symbol to distinguish
between points for each of two sales representatives
- suppresses the printing of the values of the plot variable in
the listing
- draws a reference line to a specified value on the axis and specifies
the character to use to draw the line
- connects the leftmost and rightmost symbols on each line of the
plot.
libname proclib 'SAS-data-library';
| options nodate pageno=1 linesize=80 pagesize=60
fmtsearch=(proclib);
|
| proc timeplot data=sales;
plot stove=seller /
|
| npp |
| ref=1500 refchar=':' |
| joinref
|
| axis=100 to 3000 by 50;
|
| id month week;
|
| format month monthfmt.;
title 'Weekly Sales of Stoves';
title2 'Compared to Target Sales of $1500';
title3 'K for Kreitz; L for LaGrange';
run; |
The plot uses the first letter of the value of Seller as the plotting
symbol.
|
|
|
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.