Ploticus data display engine Copyright Steve Grubb


Ploticus Gallery - Lineplots

This page contains a series of lineplot examples illustrating the available varieties and options.

These examples all use ploticus's proc lineplot.


Example 1

lineplot1

Simple example. Both X and Y come from data fields.



Example 1a


sar-cpu

This example plots cpu utilization data produced by the sar(1) utility.



Example 2


stock

Stock price / volume display. The data are read from a file.



Example 3


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 4


devol

Another example where stairstep mode is used. This example is also available with a transparent background.



Example 5


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 6


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 7


lineplot6

Characters within the point symbols. The characters comes from a data field. Use the pointsymbol and pointlabelfield attributes.



Example 8


lineplot6

Y value shown at selected points. Use numbers option, and the pointlabelrange attribute to control the range where the labels will appear.



Example 9


lpfilled1

In this example, proc lineplot is invoked twice, first to do the filled area using the fill option, and then again to do the red line. The Y axis grid is done last so that it is on top of everything else.



Example 10


lpfilled2

Same as above, with a portion of the area highlighted. 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 11


lpfilled3

Another example with more data points.



Example 12


td

Here, two lineplots with points denoted by geometric symbols are plotted along with three curves with filled area underneath.



Example 13


accrual

In this example, ploticus accumulates individual values to produce cumulative lines. This example also illustrates using drawcommands to draw the straight goal lines.