Search


Ploticus > Prefabs >
scat prefab for producing scatterplots


Produces 2-D scatterplots with optional point labeling, correlation, regression line, and error bars. Up to four study groups can be displayed, although some options apply only to the first set.
View the scat prefab examples


Parameters

Prefab
parameter
name
Data type DefaultDescription 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
downtriangle
  Controls the shape of the data point symbol(s). Note: the scat prefab uses the new direct-pixel data points whenever possible (eg. circle is converted internally to pixcircle) 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)
ptstyle filled or outline filled Determines whether all data point symbols will be filled (solid color) or outline shape. ptstyle=outline

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 no Clustering forces duplicate (or near-duplicate) points to be visible by offsetting duplicate points slightly. cluster=yes
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
maxinpoints n If doing a regression curve and there are more than 1000 data points, use this parameter to indicate the maximum number of data points. version 2.33+ maxinpoints=20000
sizefield
sizescale
colorfield
 See the proc scatterplot docs for explanation of these 


 


Ploticus 2.42 ... May 2013 Terms of use / GPL