Chapter Contents |
Previous |
Next |
The GPLOT Procedure |
Procedure features: |
| ||||||||||||
Other features: |
| ||||||||||||
Sample library member: | GR21N09 |
In this plot of the average monthly temperature for Minneapolis, temperature variables that represent degrees centigrade (displayed on the left axis) and degrees Fahrenheit (displayed on the right axis) are plotted against the variable MONTH. Although the procedure produces two sets of data points, it calibrates the axes so that the data points are identical and it displays only one plot.
This example uses SYMBOL statements to define symbol definitions. By default, the SYMBOL1 statement is assigned to the plot that is generated by the PLOT statement, and SYMBOL2 is assigned to the plot generated by the PLOT2 statement.
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=3; |
title1 'Average Monthly Temperature for Minneapolis'; footnote1 j=l ' Source: 1984 American Express'; footnote2 j=l ' Appointment Book' j=r 'GR21N09 '; |
symbol1 interpol=needle ci=blue cv=red width=3 value=star height=3; |
symbol2 interpol=none value=none; |
proc gplot data=reflib.minntemp; plot c2*month / caxis=red haxis=axis1 hminor=0 vaxis=axis2 vminor=1 plot2 f2*month / caxis=red vaxis=axis3 vminor=1; run; quit; |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.