plot.sim_rw | R Documentation |
Plot Simulated Random Walks
## S3 method for class 'sim_rw' plot( x, y, ..., link = c("identity", "log", "logit"), baseline, center = c("start", "mean", "bottom", "top") )
x |
An |
y |
Currently ignored. |
... |
Currently ignored. |
link |
Which link to use for back transformation. |
baseline |
Optional baseline for the time series. |
center |
Defines how to centre the time series to the baseline.
Options are: |
A \link[ggplot2]{ggplot}
object.
Other priors:
plot.sim_iid()
,
select_change()
,
select_divergence()
,
select_poly()
,
select_quantile()
,
simulate_iid()
,
simulate_rw()
set.seed(20181202) x <- simulate_rw(sigma = 0.05, start = -10, length = 40) plot(x) plot(select_quantile(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)) plot(select_quantile(x), link = "log") plot(select_quantile(x), link = "logit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.