plot_coef,commOccu-method | R Documentation |
Plot effect sizes for all species in a community (multi-species) occupancy model. Currently only supports continuous covariates, not categorical covariates.
## S4 method for signature 'commOccu'
plot_coef(
object,
mcmc.list,
submodel = "state",
ordered = TRUE,
combine = FALSE,
outdir,
level = c(outer = 0.95, inner = 0.75),
colorby = "significance",
scales = "free_y",
community_lines = FALSE,
...
)
object |
|
mcmc.list |
mcmc.list. Output of |
submodel |
character. Submodel to get plots for. Can be |
ordered |
logical. Order species in plot by median effect (TRUE) or by species name (FALSE) |
combine |
logical. Combine multiple plots into one plot (via facets)? |
outdir |
character. Directory to save plots to (optional) |
level |
numeric. Probability mass to include in the uncertainty interval (two values named "outer" and "inner", in that order). Second value (= inner interval) will be plotted thicker. |
colorby |
character. Whether to color estimates by |
scales |
character. Passed to |
community_lines |
logical. Add faint vertical lines to the plot indicating median community effect (solid line) and its confidence interval (first value from |
... |
additional arguments for |
Users who wish to create their own visualizations can use the data stored in the ggplot output. It is accessed via e.g. output$covariate_name$data
A list of ggplot objects (one list item per covariate).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.