animateCohortTransect: Animate sediment cohorts across an elevation transect

View source: R/animateCohortTransect.R

animateCohortTransectR Documentation

Animate sediment cohorts across an elevation transect

Description

This function takes two runCohortMemTransect outputs, cohortsTransect and scenarioTransect tables, as inputs and visualizes soil formation as an animated .gif

Usage

animateCohortTransect(
  scenarioTransect,
  cohortsTransect,
  duration = 30,
  width = 5,
  height = 3,
  savePath = getwd(),
  filename = "MEM-transect-animation.gif"
)

Arguments

scenarioTransect

data frame, annual summaries of inputs and outputs from runCohortMemTransect

cohortsTransect

data frame, annually tracked soil mass cohorts output from runCohortMemTransect

duration

numeric, length in seconds of the animation

width

numeric, width in inches of the .gif

height

numeric, height in inches of the .gif

savePath

character, filepath to save animation to

filename

character, name of the output file


tilbud/rCTM documentation built on March 30, 2024, 10:06 a.m.