Riemann_bars: Create dataframe for graphing Riemann bars

View source: R/Riemann_bars.R

Riemann_barsR Documentation

Create dataframe for graphing Riemann bars

Description

Create dataframe for graphing Riemann bars

Usage

Riemann_bars(tilde, h, domain, ...)

Arguments

tilde

tilde expression defining a function

h

width of bars

domain

as in slice_plot()

...

parameters for tilde expression

Examples

Pts <- Riemann_bars(x*dnorm(x) ~ x, h=0.1, domain(x=c(-3,3)))
## Not run: 
gf_rect(ymin + ymax ~ xmin + xmax, data = Pts,
fill=~ color, alpha=0.3, color="black") %>%
gf_refine(scale_fill_identity())

## End(Not run)


dtkaplan/Znotes documentation built on Sept. 4, 2022, 10:21 a.m.