plot.SDMfit: Plots the regression coefficients of a local model

View source: R/plot.SDMfit.R

plot.SDMfitR Documentation

Plots the regression coefficients of a local model

Description

Plots the regression coefficients of a local SDMfit model

Usage

## S3 method for class 'SDMfit'
plot(x, level = 0.95, ...)

Arguments

x

A SDMfit object, typically obtained with trophicSDM() and available in the field $model of a trophicSDMfit object

level

the confidence level of the confidence intervals

...

additional arguments

Value

A plot of the regression coefficients of the fitted local SDM

Author(s)

Giovanni Poggiato

Examples

data(Y, X, G)
# define abiotic part of the model
env.formula = "~ X_1 + X_2"
# Run the model with bottom-up control using stan_glm as fitting method and no penalisation
# (set iter = 1000 to obtain reliable results)
m = trophicSDM(Y, X, G, env.formula, iter = 50,
               family = binomial(link = "logit"), penal = NULL,
               mode = "prey", method = "stan_glm")
# Plot species Y6

plot(m$model$Y6)


webSDM documentation built on June 24, 2024, 5:13 p.m.