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';
![Note about code](../common/images/snbut.gif) | options nodate pageno=1 linesize=80 pagesize=60
fmtsearch=(proclib);
|
![Note about code](../common/images/snbut.gif) | proc timeplot data=sales;
plot stove=seller /
|
![Note about code](../common/images/snbut.gif) | npp |
![Note about code](../common/images/snbut.gif) | ref=1500 refchar=':' |
![Note about code](../common/images/snbut.gif) | joinref
|
![Note about code](../common/images/snbut.gif) | axis=100 to 3000 by 50;
|
![Note about code](../common/images/snbut.gif) | id month week;
|
![Note about code](../common/images/snbut.gif) | 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.
|
|
![[Listing Output]](../common/images/outlist.gif) |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.