Procedure features: |
CLASS statement |
PLOT statement arguments:
|
creating multiple plots |
|
NOSYMNAME |
|
OVPCHAR= | |
|
Data set: |
SALES
|
Formats: |
MONTHFMT.
|
This example
-
groups observations for
the same month and week so that sales
for the two sales representatives for the same week appear on the same line
of the plot
-
specifies a variable to use as the plotting symbol
-
suppresses the name of the plotting variable from one
plot
-
specifies a size for the plots so that they both occupy the same
amount of space.
|
libname proclib 'SAS-library'; |
|
options nodate pageno=1 linesize=80 pagesize=60
fmtsearch=(proclib); |
|
proc timeplot data=sales;
class month week; |
|
plot stove=seller / pos=25 ovpchar='!';
plot icebox=seller / pos=25 ovpchar='!' nosymname; |
|
format stove icebox dollar10.2 month monthfmt.; |
|
title 'Weekly Appliance Sales for the First Quarter';
run; |
Weekly Appliance Sales for the First Quarter 1
Seller :Kreitz Seller :LeGrange
Month Week Stove Stove min max
$184.24 $2,910.37
*-------------------------*
January 1 $1,312.61 $728.13 | L K |
January 2 $222.35 $184.24 |! |
January 3 $2,263.33 $267.35 | L K |
January 4 $1,787.45 $274.51 | L K |
February 1 $2,910.37 $397.98 | L K|
February 2 $819.69 $2,242.24 | K L |
*-------------------------*
Weekly Appliance Sales for the First Quarter 2
Kreitz LeGrange
Month Week Icebox Icebox min max
$2,520.04 $3,550.43
*-------------------------*
January 1 $3,450.94 $2,520.04 |L K |
January 2 $3,240.67 $2,675.42 | L K |
January 3 $3,160.45 $2,805.35 | L K |
January 4 $3,400.24 $2,870.61 | L K |
February 1 $3,550.43 $2,730.09 | L K|
February 2 $3,385.74 $2,670.93 | L K |
*-------------------------*
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.