View source: R/calculus_funs.R
integral_plot | R Documentation |
Integral plot using Riemann sums.
integral_plot(
fun = normal_fun,
xmin = 0,
xmax = 1,
view_xmin = xmin - 0.5 * (xmax - xmin),
view_xmax = xmax + 0.5 * (xmax - xmin),
n = 10,
rect_alpha = 0.5,
rect_color = "black",
rect_fill = "grey50"
)
fun |
function used to calculate Riemann sums. |
xmin |
minimum x-value. |
xmax |
maximum x-value. |
view_xmin |
minimum x-value for the plot view. |
view_xmax |
maximum x-value for the plot view. |
n |
number of rectangles used to estimate Riemann sum. |
rect_alpha |
the alpha (transparency) level for rectangles. |
rect_color |
the color for rectangles. |
rect_fill |
the fill color for rectangles. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.