Simulate trajectories by drawing random samples from the given priors for each parameter in the biokinetics model.

# S3 method for class 'biokinetics_priors'
plot(
  x,
  ...,
  tmax = 150,
  n_draws = 2000,
  data = NULL,
  upper_censoring_limit = NULL,
  lower_censoring_limit = NULL
)

Arguments

x

A named list of type 'biokinetics_priors'.

...

Further arguments passed to the method.

tmax

Integer. The number of time points in each simulated trajectory. Default 150.

n_draws

Integer. The number of trajectories to simulate. Default 2000.

data

Optional data.frame with columns time_since_last_exp and value. The raw data to compare to.

upper_censoring_limit

Optional upper detection limit.

lower_censoring_limit

Optional lower detection limit.

Value

A ggplot2 object.