Learn R Programming

forestecology (version 0.2.0)

autoplot.comp_bayes_lm: Plot Bayesian model parameters

Description

Plot Bayesian model parameters

Usage

# 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<U+2014>only included for consistency with generic.

Value

focal_vs_comp with new column of predicted growth_hat

Examples

Run this code
# NOT RUN {
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")

# Plot beta_dbh, growth-dbh slope
autoplot(comp_bayes_lm_ex, type = "dbh_slopes")

# Plot lambdas, competition coefficients
autoplot(comp_bayes_lm_ex, type = "competition")
# }

Run the code above in your browser using DataLab