![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/GRAPH Software: Reference |
Sample library member: GR08N01
libname reflib 'SAS-data-library';
goptions reset=global gunit=pct border
cback=white
colors=(black blue green red)
ftitle=swissb ftext=swiss htitle=6
htext=4;
data reflib.dowhlc;
input date date7. high low close;
format date date7.;
datalines;
02JAN97 6511.38 6318.96 6442.49
03JAN97 6586.42 6437.10 6544.09
...more data lines...
30JAN97 6621.82 6481.75 6600.66
31JAN97 6621.82 6481.75 6600.66
;
data reflib.dowhlc2; set reflib.dowhlc; drop high low close; dow=high; output; dow=low; output; dow=close; output;
title1 'Dow Jones High-Low-Close'; title2 'January, 1997'; footnote height=3 justify=right 'GR08N01 ' ;
symbol interpol=hiloctj
cv=blue
ci=red
width=2;
axis1 order=('30DEC96'd to '03FEB97'd by week)
offset=(3,3)
color=blue
label=none
major=(height=3 width=2)
minor=(number=6 color=red height=2 width=1)
width=3;
axis2 color=blue
label=none
major=(height=3)
minor=(number=4 color=red height=1)
offset=(2,2);
proc gplot data=reflib.dowhlc2;
plot dow*date / haxis=axis1
vaxis=axis2;
run;
quit;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.