## lines prefab

Version 2.32
Prefabs

Manual page for lines_prefab(PL)

View the lines prefab examples

lines is a prefab for producing line plots with optional point symbols and error bars, for up to four groups.`` For the first group data points are in data fields given in x and y, and optional error bar value given in err.`` By default x is assumed to be continuous numeric, but it can be categories if cats is specified. (For chronological X data, use the chron prefab instead.) To display a second line, use y2, err2, etc.`` Same for third and fourth lines.``

## Parameters

Prefab parameter name | Data type | Default | Description | Examples (ignore line wrapping)
Standard parameters |  |  | Most of the standard prefab parameters may be used. You must specify data (the name of the input data file). The clickmap parameters aren't available with this prefab.
x | data field | must be specified | Identifies the data field that will hold X component for all curves. | `x=2 x=pmb`
y y2 y3 y4 | data field | y must be specified | Identifies the data field that will hold Y component(s), y for the first curve, y2 for a second curve, and so on. | `y=3 y2=4 y=pmr`
cats | `yes` or `no` | `no` | If `yes`, X values are understood to be alphanumeric categories, not continuous numeric values. | `cats=yes`
linedet linedet2 linedet3 linedet4 | linedetails | thin lines in red, blue, green, and orange | Controls the line style, color, etc. for up to four curves. If doing multiple lines, you can specify `linedet2` without having to specify `linedet` (etc), if you want. | `"linedet= width=0.4 color=red" "linedet2= width=0.4 color=blue"`
pointsym pointsym2 pointsym3 pointsym4 | symbol | outlined square, triangle, diamond, and inverted triangle | Controls the appearance of data points. May be given as `none` for no point symbol. If doing multiple lines, you can specify `pointsym2` without having to specify `pointsym` (etc), if you want. | `"pointsym= shape=circle style=outline fillcolor=pink"`
fill fill2 fill3 fill4 | color |  | If specified, the area under the plotted line to be filled with the given color. If doing multiple lines, you can specify `fill2` without having to specify `fill` (etc), if you want. | `fill=dullyellow`
step | `yes` or `no` | `no` | Render stairstep lineplot(s). Point symbols are turned off. Applies to all lines. | `step=yes`
errcolor | color | `black` | Error bar color. Applies to all lines plotted. | `errcolor=gray(0.6)`
errwidth | inches or cm | 0.08 | Width of error bar tails. | `errwidth=0.12`
errthick | line thickness value | 0.5 | The thickness of the error bar lines. | `errthick=1`

### Additional parameters

The following are available and are exactly the same as documented in the proc lineplot manual page.. see that page for descriptions and usage. All are optional.
gapmissing gap the line on missing data
numbers display the plotted numbers
clip clip to the plotting area
accum summate values from left to right

data display engine
Copyright Steve Grubb

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