This example shows how you can specify date values on an axis.
|
options nodate pageno=1 linesize=120 pagesize=40; |
|
data emergency_calls;
input Date : date7. Calls @@;
label calls='Number of Calls';
datalines;
1APR94 134 11APR94 384 13FEB94 488
2MAR94 289 21MAR94 201 14MAR94 460
3JUN94 184 13JUN94 152 30APR94 356
4JAN94 179 14JAN94 128 16JUN94 480
5APR94 360 15APR94 350 24JUL94 388
6MAY94 245 15DEC94 150 17NOV94 328
7JUL94 280 16MAY94 240 25AUG94 280
8AUG94 494 17JUL94 499 26SEP94 394
9SEP94 309 18AUG94 248 23NOV94 590
19SEP94 356 24FEB94 201 29JUL94 330
10OCT94 222 25MAR94 183 30AUG94 321
11NOV94 294 26APR94 412 2DEC94 511
27MAY94 294 22DEC94 413 28JUN94 309
; |
|
proc plot data=emergency_calls;
plot calls*date / haxis='1JAN94'd to '1JAN95'd by month; |
|
format date date7.; |
|
title 'Calls to City Emergency Services Number';
title2 'Sample of Days for 1994';
run; |
|
Calls to City Emergency Services Number 1
Sample of Days for 1994
Plot of Calls*Date. Legend: A = 1 obs, B = 2 obs, etc.
|
|
600 + A
|
|
|
| A
N 500 + A A
u | A A
m | A
b |
e | A A
r 400 + A
| A A
o | A A A A
f | A
| A A
C 300 + A A A A
a | A A A
l |
l | A A A
s | A
200 + A A
| A A A
| A A
| A
| A
100 +
|
---+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--
01JAN94 01FEB94 01MAR94 01APR94 01MAY94 01JUN94 01JUL94 01AUG94 01SEP94 01OCT94 01NOV94 01DEC94 01JAN95
Date
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.