integral_plot: Integral plot using Riemann sums.

View source: R/calculus_funs.R

integral_plotR Documentation

Integral plot using Riemann sums.

Description

Integral plot using Riemann sums.

Usage

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"
)

Arguments

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.


jbryer/VisualStats documentation built on Feb. 27, 2025, 6:19 p.m.