plot.dalmatian: Plot Function for 'dalmatian' objects

Description Usage Arguments Details Value Author(s) References Examples

View source: R/dalmatian.R

Description

Create traceplots and caterpillar plots from output of the fitted model.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'dalmatian'
plot(
  x,
  trace = TRUE,
  caterpillar = TRUE,
  show = TRUE,
  return_plots = FALSE,
  ...
)

Arguments

x

Object of class dalmatian created by dalmatian().

trace

If TRUE (default) then generate traceplots.

caterpillar

If TRUE (default) then generate caterpillar plots

show

If TRUE (default) then display plots as they are generated.

return_plots

If TRUE (not default) return a list of ggplot objects representing the plots.

...

Ignored

Details

This function is a wrapper for the functions traceplots.dalmatian() and caterpillar.dalmatian() which create traceplots and caterpillar plots of all variables stored by the sampler. Further control is available by calling these functions directly.

Value

List of ggplot objects if return_plots is true.

Author(s)

Simon Bonner

References

Bonner, S., Kim, H., Westneat, D., Mutzel, A., Wright, J., and Schofield, M.. (2021). dalmatian: A Package for Fitting Double Hierarchical Linear Models in R via JAGS and nimble. Journal of Statistical Software, 100, 10, 1–25. doi: 10.18637/jss.v100.i10.

Examples

1
2
3
4
5
6
7
8
## Not run: 
## Plot results for pied-flycatcher model without random effects
plot(pfresults)

## Plot results for pied-flycatcher model with random effects
plot(pfresults2)

## End(Not run)

dalmatian documentation built on Nov. 23, 2021, 1:08 a.m.