Sample 24931: Label reference line
/* Set graphics options */
goptions reset=all ftext=centb lfactor=2
htext=1.5;
/* Create sample data set, A */
data a;
input year $ y;
datalines;
90 40
91 85
92 80
93 50
94 90
95 80
;
symbol i=j v=dot c=blue;
/* Define axis characteristics */
axis1 order=(0 to 100 by 25) minor=none
reflabel=(j=c '1st reference line' '2nd reference line');
title1 h=5 pct f=swissb 'Sales Report';
/* Produce the plot */
proc gplot data=a;
plot y*year / vaxis=axis1 vref=25 50;
run;
quit;
This sample uses the REFLABEL option on an AXIS statement to label two different reference lines.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GPLOT Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Reference Lines Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Labels
|
| Date Modified: | 2005-08-31 03:03:20 |
| Date Created: | 2004-11-11 11:08:02 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 8 TS M0 | n/a |