plot: Default INLA plotting

Description Usage Arguments Value Author(s) See Also Examples

Description

Takes am inla object produced by inla and plot the results

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 ## S3 method for class 'inla'
plot(x,
              plot.fixed.effects = TRUE,
              plot.lincomb = TRUE,
              plot.random.effects = TRUE,
              plot.hyperparameters = TRUE,
              plot.predictor = TRUE,
              plot.q = TRUE,
              plot.cpo = TRUE,
              single = FALSE,
              postscript = FALSE,
              pdf = FALSE,
              prefix = "inla.plots/figure-",
              ...)
 

Arguments

x

A fitted inla object produced by inla

plot.fixed.effects

Boolean indicating if posterior marginals for the fixed effects in the model should be plotted

plot.lincomb

Boolean indicating if posterior marginals for the linear combinations should be plotted

plot.random.effects

Boolean indicating if posterior mean and quantiles for the random effects in the model should be plotted

plot.hyperparameters

Boolean indicating if posterior marginals for the hyperparameters in the model should be plotted

plot.predictor

Boolean indicating if posterior mean and quantiles for the linear predictor in the model should be plotted

plot.q

Boolean indicating if precision matrix should be displayed

plot.cpo

Boolean indicating if CPO/PIT valuesshould be plotted

single

Boolean indicating if there should be more than one plot per page (FALSE) or just one (TRUE)

postscript

Boolean indicating if postscript files should be produced instead

pdf

Boolean indicating if PDF files should be produced instead

prefix

The prefix for the created files. Additional numbering and suffix is added.

...

Additional arguments to postscript(), pdf() or dev.new().

Value

The return value is a list of the files created (if any).

Author(s)

Havard Rue hrue@math.ntnu.no

See Also

inla

Examples

1
2
3
4
5
6
7
8
## Not run: 
result = inla(...)
plot(result)
plot(result, single=TRUE)
plot(result, single=TRUE, pdf=TRUE, paper = "a4")
   
## End(Not run)
 

andrewzm/INLA documentation built on May 10, 2019, 11:12 a.m.