Sample 24937: Create a time line plot
goptions reset=all border;
data a;
input Material $ start stop linetype;
datalines;
A 4 7 1
B 1 6 2
C 3 9 1
D 2 8 2
E 1 7 1
;
data anno;
length function color $8;
retain xsys ysys '2' size 2 color 'red';
set a;
line=linetype;
function='move'; x=start; yc=Material; output;
function='draw'; x=stop; yc=Material; output;
run;
axis1 order=(0 to 10) label=('Start - Stop') minor=none;
symbol1 i=none;
title1 'Time Line';
proc gplot data=a;
plot Material*stop / anno=anno haxis=axis1;
run;
quit;
This sample program uses the Annotate facility to generate a time line plot.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GPLOT Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Types ==> Plots ==> Special Plot types
|
| Date Modified: | 2005-08-31 03:03:22 |
| Date Created: | 2004-11-11 11:08:03 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | n/a | n/a |