Function Reference
— Function File: area (x, y)
— Function File: area (x, y, lvl)
— Function File: area (..., prop, val, ...)
— Function File: area (y, ...)
— Function File: area (h, ...)
— Function File: h = area (...)

Area plot of cummulative sum of the columns of y. This shows the contributions of a value to a sum, and is functionally similar to plot (x, cumsum (y, 2)), except that the area under the curve is shaded.

If the x argument is ommitted it is assumed to be given by 1 : rows (y). A value lvl can be defined that determines where the base level of the shading under the curve should be defined.

Additional arguments to the area function are passed to the patch. The optional return value h provides a handle to area series object representing the patches of the areas.

See also: plot patch