running_mean_plot: Plot a running mean

Description Usage Arguments Examples

Description

Visualize the running, i.e. cumulative, mean of a vector.

Usage

1
running_mean_plot(x, se = FALSE, fill = "gray", alpha = 0.9)

Arguments

x

a vector

se

logical; if TRUE, naive confidence bands are included

fill

fill color of confidence bands

alpha

transparency of confidence bands

Examples

1
2
3
4
library(ggplot2)
x <- rnorm(1000)
running_mean_plot(x)
running_mean_plot(x, se=TRUE)

ajohns24/MacBayes documentation built on May 19, 2019, 12:41 a.m.