Previous Page  Next Page 
SAS/INSIGHT Statements

SCATTER Statement

SCATTER variable-list * variable-list

          < / < LABEL=variable > < < MARKERSIZE | MS >=value >

          < XAXIS=axis > < YAXIS=axis > >;

The SCATTER statement creates two-dimensional scatter plots.

Use at least one Y variable, followed by an asterisk, followed by at least one X variable. Use multiple Y and X variables to create a scatter plot matrix. For example, you might use

   scatter a b c * a b c;
to create a 3×3 scatter plot matrix for the variables a, b, and c.

You can use the LABEL= option to assign a Label variable.

Use the MARKERSIZE= or MS= option to specify the size of observation markers. Marker size is a number between 1 and 8.

Use the XAXIS= and YAXIS= options to specify numeric axes. The syntax for axis options is described under the BAR statement.

Previous Page  Next Page  Top of Page

Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.