## scat prefab

Version 2.32
Prefabs

Manual page for scat_prefab(PL)

View the scat prefab examples

scat is a prefab for producing 2-D scatterplots with optional point labeling, correlation, regression line, and error bars. Up to four groups can be displayed, although some options apply only to the first set.``

## Parameters

Prefab parameter name | Data type | Default | Description | Examples (ignore line wrapping)
Standard parameters |  |  | All of the standard prefab parameters may be used. You must specify data (the name of the input data file).
x x2 x3 x4 | data field | x must be specified | Identifies the data field(s) that will hold X component for the first, second, third, and fourth point sets respectively. | `x=2 x=pmb x2=pmc`
y y2 y3 y4 | data field | y must be specified | Identifies the data field(s) that will hold Y component for the first, second, third, and fourth point sets respectively. | `y=3 y=smb y2=smc`
ptsym ptsym2 ptsym3 ptsym4 | circle or `square` or `triangle` or `diamond` or `triangledown` |  | Controls the shape of the data point symbol(s). | `ptsym=square`
ptsize ptsize2 ptsize3 ptsize4 | inches or cm | 0.04 | Controls the size of the data point symbol(s). | `ptsize=0.07`
ptcolor ptcolor2 ptcolor3 ptcolor4 | color |  | Controls the color of the data point symbol(s). | `ptcolor=gray(0.4)`
The default for the 1st set of data points is filled blue circle. The default for the 2nd set of data points is filled red square. The default for the 3rd set of data points is filled black diamond. The default for the 4th set of data points is filled blue triangle.
cluster | `yes` or `no` | `yes` | Clustering allows duplicate points to be visible by offsetting duplicate points slightly. | `cluster=no`
cats | `yes` or `no` | `no` | If `yes`, indicates that X data will be processed as categories rather than continuous numerics. | `cats=yes`
corr | `yes` or `no` | no | Compute and display correlation and regression curve. This is available for the first set of points only. | `corr=yes`
corrcolor | color | `green` | Color of the regression line and correlation annotation. | `corrcolor=black`
id | datafield |  | A data field holding data point identifier strings. This is available for the first set of points only. | `id=5 id=desc`
idcolor | color | orange | Color of the id labels | `idcolor=gray(0.5)`
err err2 | datafield |  | If specified, this data field causes vertical error bars to be rendered for the first (or second) set of data points. The data field should hold error amounts related to y (or y2), such as standard deviations. | `xerr=5 xerr=sd`
xerr xerr2 | datafield |  | If specified, this data field causes horizontal error bars to be rendered for the first (or second) set of data points. The data field should hold error amounts related to x (or x2) such as standard deviations. | `xerr=5 xerr=sd`
errcolor | color | gray(0.7) | Color for the error bars (default gray(0.7)) | `errcolor=red`

data display engine
Copyright Steve Grubb

Markup created by unroff 1.0, `` `` August 23, 2005.