Sample 24931: Label reference lines with PROC GPLOT
This sample uses the REFLABEL option in an AXIS statement with PROC GPLOT to label two reference lines.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample uses the REFLABEL option in an AXIS statement with PROC GPLOT to label two reference lines.
The graphics output on the Results tab was produced using SAS® 9.2. Submitting the sample code with releases of SAS prior to SAS 9.2 might produce different results.
/* Set the graphics environment */
goptions reset=all cback=white border htitle=12pt;
/* Create the sample data set A */
data a;
input Year $ Y;
datalines;
90 40
91 85
92 80
93 57
94 90
95 80
;
run;
symbol1 i=join v=dot c=vibg h=1.5;
/* Define axis characteristics, using the */
/* REFLABEL option in the AXIS1 statement. */
axis1 order=(0 to 100 by 25) minor=none
reflabel=(j=c h=9pt 'First Reference Line' 'Second Reference Line');
axis2 offset=(4pct,4pct);
title1 'Using the REFLABEL option on an AXIS statement';
/* Produce the graph */
proc gplot data=a;
plot y*year / vaxis=axis1 haxis=axis2 vref=25 50;
run;
quit;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.

This sample uses the REFLABEL option in an AXIS statement with PROC GPLOT to label two 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 |