plot.sjSDM.DNN {sjSDM}R Documentation

Training history

Description

Plot training loss history

Usage

## S3 method for class 'sjSDM.DNN'
plot(x, ...)

Arguments

x

a model fitted by sjSDM with DNN object

...

passed to plot

Value

No return value, called for side effects.

Examples

## Not run: 
library(sjSDM)
# simulate community:
com = simulate_SDM(env = 6L, species = 7L, sites = 100L)

# fit model:
model = sjSDM(Y = com$response,env = com$env_weights, iter = 2L,se = TRUE) 

#create a group dataframe for plot
species=c("sp1","sp2","sp3","sp4","sp5","sp6","sp7")
group=c("mammal","bird","fish","fish","mammal","amphibian","amphibian")
group = data.frame(species=species,group=group)

plot(model,group=group)

## End(Not run)

[Package sjSDM version 1.0.5 Index]