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.
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
libname proclib 'SAS-library'; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
options nodate pageno=1 linesize=80 pagesize=60
fmtsearch=(proclib); |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
proc timeplot data=sales;
plot stove=seller / |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
npp |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
ref=1500 refchar=':' |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
joinref |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
axis=100 to 3000 by 50; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
id month week; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
format month monthfmt.; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
title 'Weekly Sales of Stoves';
title2 'Compared to Target Sales of $1500';
title3 'K for Kreitz; L for LeGrange';
run; |
![Note about figure](../../../../common/63294/HTML/default/images/snbut.gif) |
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.