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-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 LeGrange';
run; |
|
Weekly Sales of Stoves 1
Compared to Target Sales of $1500
K for Kreitz; L for LeGrange
Month Week min max
100 3000
*-----------------------------------------------------------*
January 1 | K---: |
January 1 | L--------------: |
January 2 | K-------------------------: |
January 2 | L-------------------------: |
January 3 | :--------------K |
January 3 | L------------------------: |
January 4 | :-----K |
January 4 | L------------------------: |
February 1 | :---------------------------K |
February 1 | L---------------------: |
February 2 | K-------------: |
February 2 | :--------------L |
*-----------------------------------------------------------*
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.