knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

AlgalGame

Lifecycle: experimental CRAN status

The goal of AlgalGame is to solve the ODEs created by Klausmeier and Litchman (2001) and to simulate algal vertical profiles.

Installation

You can install the released version of AlgalGame from Github with:

remotes::install_github("bishun945/AlgalGame")

Example

This is a basic example which shows you how to use this pacakge.

Run the model by the default parameters:

library(AlgalGame)
res <- run_model()

Plot the result:

plot(res$gplot)

You can also plot the result by the function ggimage with add-on contour texts:

ggimage(res$out, "Biomass", contour.text = TRUE)

The default paramters are shown as follows:

show_parms()

Update in April 13, 2021, a shiny app was generated for visualization.

run_Shiny()

References



bishun945/AlgalGame documentation built on Aug. 29, 2021, 4:40 a.m.