Procedure features: |
ID
statement |
PLOT statement arguments:
|
|
This example
-
uses a
single PLOT statement to plot sales of refrigerators
-
specifies the number of print positions to use for the horizontal
axis of the plot
-
provides context for the points in the plot by printing in the
listing the values of two variables that are not in the plot.
|
options nodate pageno=1 linesize=80 pagesize=60; |
|
data sales;
input Month Week Seller $ Icebox Stove;
datalines;
1 1 Kreitz 3450.94 1312.61
1 1 LeGrange 2520.04 728.13
1 2 Kreitz 3240.67 222.35
1 2 LeGrange 2675.42 184.24
1 3 Kreitz 3160.45 2263.33
1 3 LeGrange 2805.35 267.35
1 4 Kreitz 3400.24 1787.45
1 4 LeGrange 2870.61 274.51
2 1 Kreitz 3550.43 2910.37
2 1 LeGrange 2730.09 397.98
2 2 Kreitz 3385.74 819.69
2 2 LeGrange 2670.93 2242.24
; |
|
proc timeplot data=sales;
plot icebox / pos=50; |
|
id month week; |
|
title 'Weekly Sales of Iceboxes';
title2 'for the';
title3 'First Six Weeks of the Year';
run; |
|
Weekly Sales of Iceboxes 1
for the
First Six Weeks of the Year
Month Week Icebox min max
2520.04 3550.43
*--------------------------------------------------*
1 1 3450.94 | I |
1 1 2520.04 |I |
1 2 3240.67 | I |
1 2 2675.42 | I |
1 3 3160.45 | I |
1 3 2805.35 | I |
1 4 3400.24 | I |
1 4 2870.61 | I |
2 1 3550.43 | I|
2 1 2730.09 | I |
2 2 3385.74 | I |
2 2 2670.93 | I |
*--------------------------------------------------*
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.