Description Usage Arguments Value
View source: R/ggplot2utilsVL.R
Returns the coordinates of a polygon for graphing the area under a curve.
1 | areaUnderCurveDT(datat, startC, endC, xColumn, yColumn, yintercept = 0)
|
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. |
a data table containing the coordinates of the polygon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.