Chapter Contents |
Previous |
Next |
The GPLOT Procedure |
Procedure features: |
| |||||||||||||||||||
Other features: |
| |||||||||||||||||||
Sample library member: | GR21N05 |
This example uses a SYMBOL statement to specify a plot symbol and connect data points with a straight line. In addition, the example shows how PLOT statement options can add reference lines and modify the axes (AXIS statements are not used).
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; |
title1 'Dow Jones Yearly Highs'; footnote1 h=3 j=l ' Source: 1997 World Almanac' j=r 'GR21N05 '; |
symbol1 color=red interpol=join value=dot height=3; |
proc gplot data=reflib.stocks; plot high*year / haxis=1955 to 1995 by 5 vaxis=0 to 6000 by 1000 hminor=3 vminor=1 |
vref=1000 3000 5000 lvref=2 cvref=blue caxis=blue ctext=red; run; quit; |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.