|
Manual page for Gallery_-_Line_plots(PL)
This page contains a series of lineplot examples
illustrating the available varieties and options.
These examples all use ploticus's
proc lineplot.
Example 1 - lines prefab
lines prefab
The lines prefab
is the easiest way to create basic line plots without writing any script code.
Example 2 - lines prefab
lines prefab
The lines prefab can do
up to four curves, all with point symbols and error bars.
Example 3 - script
sar-cpu
This example plots cpu utilization data produced by the sar(1) utility.
Example 4 - script
stock
Stock price / volume display. The data are read from a file.
Example 5 - script
lineplot3
This example is a comparison of two values over time,
and displays the curves as step values. Step values are used where
interpolation between samples is not appropriate,
or for stylistic reasons. Use the stairstep option.
Y values are shown at each step as well (numbers option.
Example 6 - script
devol
Another example where stairstep mode is used.
This example is also available with a transparent background.
Example 7 - script
lineplot20
This example demonstrates various combinations of stairstep, fill, and
gapmissing. The latter is used to cause a gap in the curve where missing data
is encountered.
Example 8 - script
lineplot4
This example uses proc lineplot with instancemode
and accum options,
to count occurrances over time. Occurrances having the same date
are summed into one data point (using groupmode).
This allows display of event data without having to tabulate first.
The data must be presented in chronological order.
Example 9 - script
lineplot5
A lineplot with symbols marking the points.
Use the pointsymbol attribute.
Note that the points where lines meet is denoted by a special symbol,
using the altsym and altwhen options.
Example 10 - script
lineplot6
Characters within the point symbols.
The characters comes from a data field.
Use the pointsymbol and pointlabelfield attributes.
Example 11 - script
lineplot6
Y value shown at selected points. Use numbers option, and
the pointlabelrange attribute to control the range where
the labels will appear.
Example 12 - lines prefab
lines prefab
Two values plotted, one shown as a filled area, using the
lines prefab.
Example 13 - script
lpfilled2
proc lineplot is invoked three times, first to do
the filled area using the fill option,
second to do the highlight area,
and third to do the red line.
The Y axis grid is done last.
Example 14 - script
td
Here, two lineplots with points denoted by geometric symbols
are plotted along with three curves with filled area underneath.
Example 15 - script
accrual
In this example, ploticus accumulates individual values to
produce cumulative lines. This example also illustrates
using drawcommands to draw the straight goal lines.
|
 data display engine
Copyright Steve Grubb
|