SCATTER Subcommand (IGRAPH command)

SCATTER produces two- or three-dimensional scatterplots. Scatterplots can use either categorical or scale dimensions to create color or size legends. Categorical dimensions are required to create style legends.

The keyword COINCIDENT controls the placement of markers that have identical values on all axes. COINCIDENT can have one of the following two values:

NONE. Places coincident markers on top of one another. This is the default value.

JITTER. Adds a small amount of random noise to all scale axis dimensions. Specifying an amount is no longer supported and is ignored.

Example

IGRAPH
 /Y=VAR(sales96) TYPE=SCALE
 /X1=VAR(sales95) TYPE=SCALE
 /COORDINATE=VERTICAL
 /SCATTER COINCIDENT=JITTER.
  • COORDINATE defines the chart as two-dimensional with sales96 on the vertical dimension.
  • SCATTER creates a scatterplot of sales96 and sales95.
  • The scale axes have random noise added by the JITTER keyword allowing separation of coincident points.