Plot Bayesian model parameters

# S3 method for comp_bayes_lm
autoplot(object, type = "intercepts", sp_to_plot = NULL, ...)

Arguments

object

Output of comp_bayes_lm

type

A single character string for plot type with possible values "intercepts", "dbh_slopes", or "competition".

sp_to_plot

Vector of subset of species to plot

...

Currently ignored—only included for consistency with generic.

Value

focal_vs_comp with new column of predicted growth_hat

Examples

library(ggplot2) library(ggridges) # Load in posterior parameter example data(comp_bayes_lm_ex) # Plot beta_0, growth intercepts autoplot(comp_bayes_lm_ex, type = "intercepts")
#> Picking joint bandwidth of 0.0671
# Plot beta_dbh, growth-dbh slope autoplot(comp_bayes_lm_ex, type = "dbh_slopes")
#> Picking joint bandwidth of 0.00332
# Plot lambdas, competition coefficients autoplot(comp_bayes_lm_ex, type = "competition")
#> Picking joint bandwidth of 0.0672
#> Picking joint bandwidth of 0.098