R/wrapper_functions.R
markBackground.Rd
Marks the specified set of species as background species. Background species
are handled differently in some plots and their abundance is automatically
adjusted in addSpecies
to keep the community close to the
Sheldon spectrum.
markBackground(object, species)
object | An object of class MizerParams or MizerSim. |
---|---|
species | Name or vector of names of the species to be designated as background species. By default this is set to all species. |
... | Other arguments (unused) |
An object of the same class as the object
argument
if (FALSE) { data(NS_species_params_gears) data(inter) params <- newMultispeciesParams(NS_species_params_gears, inter) sim <- project(params, effort=1, t_max=20, t_save = 0.2) sim <- markBackground(sim, species = c("Sprat", "Sandeel", "N.pout", "Dab", "Saithe")) plotSpectra(sim) }