plot.distribution_check: Plot the results from a distribution check

View source: R/plot_distribution_check.R

plot.distribution_checkR Documentation

Plot the results from a distribution check

Description

Plot the results from a distribution check

Usage

## S3 method for class 'distribution_check'
plot(x, y, ..., n = FALSE, scales = "fixed")

Arguments

x

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

y

currently ignored

...

currently ignored

n

display the number of observations

scales

Should scales be fixed ("fixed", the default), free ("free"), or free in one dimension ("free_x", "free_y")?

Value

A \link[ggplot2]{ggplot} object.

See Also

Other utils: generate_data(), plot.dispersion_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)
)
fdc <- fast_distribution_check(model)
plot(fdc)

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