View source: R/plot_distribution_check.R
plot.distribution_check | R Documentation |
Plot the results from a distribution check
## S3 method for class 'distribution_check'
plot(x, y, ..., n = FALSE, scales = "fixed")
x |
a distribution_check object. Which is the output of
|
y |
currently ignored |
... |
currently ignored |
n |
display the number of observations |
scales |
Should scales be fixed ( |
A \link[ggplot2]{ggplot}
object.
Other utils:
generate_data()
,
plot.dispersion_check()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.