Riemann_bars | R Documentation |
Create dataframe for graphing Riemann bars
Riemann_bars(tilde, h, domain, ...)
tilde |
tilde expression defining a function |
h |
width of bars |
domain |
as in slice_plot() |
... |
parameters for tilde expression |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.