powered by
This function computes the area formed by two curves.
area(y1, y2, x = NULL)
A vector of y-coordinates for the first curve.
A vector of y-coordinates for the second curve.
A vector of increasing x-coordinates. Default, an equidistant vector of length length(y1) from 0 to 1.
The area