Setting multiple resources

resource_params() `resource_params<-`()

Resource parameters

setMultipleResources() resource_capacity() `resource_capacity<-`() resource_rate() `resource_rate<-`() resource_interaction() `resource_interaction<-`() initialNResource() `initialNResource<-`()

Set up multiple resources

newMRParams()

Create a new multi-resource, multi-species model

Accessing results of simulations

NResource() finalNResource()

Access resource abundances in simulation result

plotSpectra() plotlySpectra()

Plot the abundance spectra

getDiet()

Get diet of predator at size, resolved by prey species

plotDiet() plotlyDiet()

Plot diet, resolved by prey species, as function of predator at size.

plotResourceLevel()

Plot the proportion of the resource spectrum(s) compared to their carrying capacity

plotResourcePred() plotlyResourcePred()

Plot functions regarding the resources. Compatible with non mizerMR objects Plot the mortality applied on the resource spectrum(s)

animateSpectra()

Animation of the abundance spectra

Internal helper functions

validResourceParams()

Validate resource parameter data frame

valid_initial_resource()

Return valid initial resource array

valid_resources_arg()

Helper function to assure validity of resources argument

valid_resource_capacity()

Return valid resource capacity array

valid_resource_interaction()

Return valid resource interaction array

valid_resource_rate()

Return valid resource rate array

set_resource_param_default()

Set a resource parameter to a default value