View source: R/core_mimosa2_funcs.R
add_residuals | R Documentation |
Returns a melted data table of species and their scaled cmps (based on model coefficient), along with residual contributions
add_residuals(species_cmps, model_dat, resid_dat)
species_cmps |
data table of species and their CMPs |
model_dat |
Table of model results (from fit_cmp_mods) |
resid_dat |
Table of model residuals (from fit_cmp_mods) |
A melted data table of species and their CMPs, including "Residual" as an additional species
add_residuals(species_cmps, mod_results[[1]], mod_results[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.