| points | Create an Annotate dataset to draw points in a plot | points | 
Visualizing Categorical Data: points
$Version: 1.1 (18 Nov 1998)
Michael Friendly
York University
Create an Annotate dataset to draw points in a plot
The points macro creates an annotate data set to draw point symbols in a 2D
or 3D scatterplot. This is useful when you need to plot two variables (e.g,
observed, predicted) against a common X, with separate curves for the
levels of a class variable. In PROC GPLOT, for example, you cannot do
   proc gplot;
      plot (obs fit) * X = group;
However, you can add the OBS points to a plot of fit*X:
  %points(x=X, y=obs);
   proc gplot;
      plot fit * X = group / anno=_pts_;
The POINTS macro is called with keyword parameters. The X= and Y=
parameters are required. For a plot with PROC G3D, you must also give the Z= variable. The arguments may be listed within parentheses in any order,
separated by commas. 
- DATA=
- 
The name of the input data set [Default: DATA=_LAST_]
- X=
- 
The name of the X variable for the scatterplot
- Y=
- 
The name of the Y variable for the scatterplot
- Z=
- 
The name of the Z variable for a 3D scatterplot
- BY=
- 
The name(s)of any BYvariable(s)to be used for
multiple plots.
- CLASS=
- 
The name of a class variable, to be used with PROC GPLOT in the PLOT
statement for multiple curves, in the form
         plot Y * X = CLASS;
 
- SYS=
- 
Specifies the Annotate XSYS & YSYS value [Default: SYS=2]
- COLOR=
- 
Point color(s):the name of a dataset character variable, or
an expression which evaluates to a SAS/GRAPH color, or string constant
enclosed in quotes. [Default:COLOR='BLACK']
- SYMBOL=
- 
Point symbol(s):the name of a dataset character variable, or
an expression which evaluates to a SAS/GRAPH color, or string constant
enclosed in quotes. [Default:SYMBOL='DOT']
- SIZE=
- 
The size of the symbol (in GUNIT units). If not specified, the global
graphics option HTEXT value is used.
- FONT=
- 
Font for symbol(s):the name of a dataset character variable,
or an expression which evaluates to a SAS/GRAPH color, or string constant
enclosed in quotes. Use for special symbols, e.g.,FONT='MARKER'.  If not specified, the standard symbol font is used.
- SUBSET=
- 
An expression (which may involve any dataset variables) to select points. A
point will be plotted if the expression evaluates to non-zero for the
current observation. [Default: SUBSET=1]
- COPY=
- 
The names of any variables to be copied to output dataset
- IN=
- 
The name of an optional input annotate data set. If specified, the IN= data set is concatenated with the
OUT= data set.
- OUT=
- 
Name of the annotate data set produced. [Default: OUT=_PTS_]
See also
bars Create an annotate data set to draw error bars
label Create an Annotate dataset to label observations
points Create an Annotate dataset to draw points in a plot
pscale Construct annotations for a probability scale