plot.sim_iid: Plot Simulated Random Intercepts

View source: R/simulate_idd.R

plot.sim_iidR Documentation

Plot Simulated Random Intercepts

Description

Plot Simulated Random Intercepts

Usage

## S3 method for class 'sim_iid'
plot(
  x,
  y,
  ...,
  link = c("identity", "log", "logit"),
  baseline,
  center = c("mean", "bottom", "top"),
  quantiles = c(0.025, 0.1, 0.5, 0.9, 0.975)
)

Arguments

x

A sim_iid object. Which is the output of \link{simulate_iid}.

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: 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.

quantiles

Which quantiles are shown on the plot.

Value

A \link[ggplot2]{ggplot} object.

See Also

Other priors: plot.sim_rw(), select_change(), select_divergence(), select_poly(), select_quantile(), simulate_iid(), simulate_rw()

Examples

set.seed(20181202)
x <- simulate_iid(sigma = 0.25)
plot(x)
plot(x, link = "log")
plot(x, link = "logit")

inbo/inlatools documentation built on Sept. 17, 2022, 2:13 p.m.