aucpoly: Draw/color/shade area under a curve.

View source: R/aucpoly.R

aucpolyR Documentation

Draw/color/shade area under a curve.

Description

This is a utility function mainly for drawing/coloring/shading the area under the curve of a fuction (typically a probability density function).

Usage

aucpoly(x, f, a, b, ...)

Arguments

x

Vector of values at which to evaluate the curve.

f

Function for the curve.

a

Lower bound of the interval.

b

Upper bound of the interval.

...

Additional arguments to polygon.


trobinj/trtools documentation built on Jan. 28, 2024, 3:20 a.m.