plot.dispersion_check: Plot the results from a dispersion check

View source: R/plot_distribution_check.R

plot.dispersion_checkR Documentation

Plot the results from a dispersion check

Description

Plot the results from a dispersion check

Usage

## S3 method for class 'dispersion_check'
plot(x, y, ...)

Arguments

x

a dispersion_check object. Which is the output of \link{dispersion_check}

y

currently ignored

...

currently ignored

Value

A \link[ggplot2]{ggplot} object.

See Also

Other utils: generate_data(), plot.distribution_check()

Examples

library(INLA)
set.seed(20181202)
model <- inla(
  poisson ~ 1,
  family = "poisson",
  data = data.frame(
    poisson = rpois(20, lambda = 10),
    base = 1
  ),
  control.predictor = list(compute = TRUE)
)
dc <- dispersion_check(model)
plot(dc)

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