Sample 24930: Label data points with POINTLABEL=
/* Set graphics options */
goptions reset=all ftext=centb lfactor=2
htext=1.5;
/* Define data set for plotting */
data a;
input MONTH SALES;
datalines;
1 52
2 16
3 78
4 14
5 26
6 31
7 92
8 19
9 18
10 22
11 84
12 93
;
/* Specify POINTLABEL= to label plot points */
symbol1 i=j v=dot c=red pointlabel=(h=1.5 '#sales');
title1 h=2 f=swissb 'The POINTLABEL Option';
axis1 offset=(4,4) minor=none;
axis2 offset=(2,2) minor=none;
proc gplot data=a;
plot sales * month / haxis=axis1 vaxis=axis2 noframe;
run;
quit;
This sample uses the POINTLABEL= option on the SYMBOL statement to label the plot points.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GPLOT Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Labels
|
| Date Modified: | 2005-08-31 03:03:19 |
| Date Created: | 2004-11-11 11:08:02 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 8 TS M0 | n/a |