View source: R/animateCohortTransect.R
| animateCohortTransect | R Documentation | 
This function takes two runCohortMemTransect outputs, cohortsTransect and scenarioTransect tables, as inputs and visualizes soil formation as an animated .gif
animateCohortTransect(
  scenarioTransect,
  cohortsTransect,
  duration = 30,
  width = 5,
  height = 3,
  savePath = getwd(),
  filename = "MEM-transect-animation.gif"
)
| 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 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.