plot_series: Series Plotter

Description Usage Arguments Value Examples

View source: R/plotters.R

Description

Plots the value of a one-dimensional series against the iteration where it occurred. Useful to see the general pattern of the chain (white noise, random walk, volatility clustering)

Usage

1
plot_series(chain)

Arguments

chain

Vector of n length, where n is the number of trials or sampler iterations

Value

A series plot

Examples

1
2
3
4
target <- distr::Norm()
pd_func <- make_distr_pdf(target)
chain1 <- sampler_mcmc(pd_func, 0, sigma_prop = 1)
plot_series(chain1[[1]])

lucas-castillo/SampleR documentation built on Jan. 1, 2021, 8:25 a.m.