Plot simulated random walks

# S3 method for sim_rw
plot(x, y, ..., link = c("identity", "log", "logit"),
  baseline, center = c("start", "mean", "bottom", "top"))

Arguments

x

a sim_rw object. Which is the output of simulate_rw

y

currently ignored

...

currently ignored

link

which link to use for back transformation

baseline

optional baseline for the time series

center

defines how to center the time series to the baseline. Options are: start all time series start at the baseline; mean the average of the time series is the baseline; bottom the lowest value of the time series equals the baseline; top the highest value of the time series equals the baseline

Value

a ggplot object

See also

Examples

set.seed(20181202) x <- simulate_rw(sigma = 0.05, start = -10, length = 40) plot(x)
plot(select_quantile(x), link = "log")
plot(select_quantile(x), link = "logit")
x <- simulate_rw(sigma = 0.001, start = -10, length = 40, order = 2) plot(x)
plot(select_quantile(x), link = "log")
plot(select_quantile(x), link = "logit")