plot.trophicSDMfit {webSDM} | R Documentation |
Plots the regression coefficients of a fitted trophicSDM model
Description
Plots the regression coefficients of a fitted trophicSDM model. A subset of species to be plotted can be specified in the parameterspecies
.
Usage
## S3 method for class 'trophicSDMfit'
plot(x, species = NULL, ...)
Arguments
x |
A trophicSDMfit object obtained with trophicSDM() |
species |
A vector of species names to be plot. If NULL (default), all species are plotted. |
... |
additional arguments |
Value
A plot of the regression coefficients of the fitted tropic 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 just the first three species
plot(m, species = c("Y1","Y2","Y3"))
# If species = NULL (default), all species are plotted.
[Package webSDM version 1.1-5 Index]