View source: R/integrate_area.R
integrate_area | R Documentation |
Integrate the area under a xy plot. Credit to StackOverflow The method used here is to sum the area of mutiple trapeziums under a line.
integrate_area(df, x, y, skip.na = TRUE)
df |
Data frame containing |
x |
Column name for the x axis. |
y |
Column name for the y axis. |
skip.na |
Logical. How to treat |
A value of the area.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.