Description Usage Arguments Examples
Visualize the running, i.e. cumulative, mean of a vector.
1 | running_mean_plot(x, se = FALSE, fill = "gray", alpha = 0.9)
|
x |
a vector |
se |
logical; if TRUE, naive confidence bands are included |
fill |
fill color of confidence bands |
alpha |
transparency of confidence bands |
1 2 3 4 | library(ggplot2)
x <- rnorm(1000)
running_mean_plot(x)
running_mean_plot(x, se=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.