gustavdelius / mizer

This is my old mizer fork that is not actively used any more but still has lots of material in its many branches.
http://gustavdelius.github.io/mizer/
0 stars 2 forks source link

This is an old fork of sizespectrum/mizer that is not actively used any more. I keep it because it still has some interesting material hidden in its many branches that I might want to revisit at some point in the future.

mizer

CRAN
Status Travis-CI Build
Status Coverage
status CRAN
Downloads Rdoc

Mizer is an R package to run multi-species size-spectrum models of fish communities. The package has been developed to model marine ecosystems that are subject to fishing. However, it may also be appropriate for other ecosystems.

The package contains routines and functions to allow users to set up an ecosystem model, and then project it through time under different fishing strategies. Methods are included to explore the results, including plots and calculation of community indicators such as the slope of the size spectrum. Size-based models can be complicated so mizer contains many default options that can be easily changed by the user.

Mizer can also be used to create web apps that allow users to explore models without the need to install R. An example of such an app investigates the effect of switching to a gear with a T90 extension net to reduce the catches of undersize hake and red mullet

Mizer is still under active development, currently funded by the European Commission Horizon 2020 Research and Innovation Programme under Grant Agreement No. 634495 for the project MINOUW (http://minouw-project.eu/) and the Australian Research Council Discovery Project (“Rewiring Marine Food Webs”).

Does your project or publication use mizer? If so, we’d love to know. You can also join our Google Discussion group here: https://groups.google.com/forum/#!forum/size-spectrum-models

Installation

The package is on CRAN and therefore available from R’s built-in package manager.

# Install release version from CRAN
install.packages("mizer")

# Alternatively, install development version from GitHub
devtools::install_github("sizespectrum/mizer")

Example

The following code loads the mizer package, loads some information about species in the North Sea that comes as an example with the package, sets up the parameters for the mizer model, and runs a simulation for 10 years.

library(mizer)
params <- newMultispeciesParams(NS_species_params, inter)
sim <- project(params, t_max = 10, effort = 0)

The results of the simulation can then be analysed, for example via plots:

plot(sim)

See the accompanying Get started page for more details on how the package works, including detailed examples.