areaUnderCurveDT: Returns the coordinates of a polygon for graphing the area...

Description Usage Arguments Value

View source: R/ggplot2utilsVL.R

Description

Returns the coordinates of a polygon for graphing the area under a curve.

Usage

1
areaUnderCurveDT(datat, startC, endC, xColumn, yColumn, yintercept = 0)

Arguments

datat

the data table containing the points of the function whose area under the curve is to be plotted.

startC

a vector containing the x and y coordinates of the leftmost point on the curve to be plotted.

endC

a vector containing the x and y coordinates of the righttmost point on the curve to be plotted.

xColumn

a string indicating the name of the column in datat which corresponds to the x values.

yColumn

a string indicating the name of the column in datat which corresponds to the y values.

yintercept

y intercept of the horizontal line at the bottom of the polygon to be plotted.

Value

a data table containing the coordinates of the polygon.


VinLaflamme/ggplot2utilsVL documentation built on May 26, 2019, 1:31 a.m.