sim_animation: Function to animate the results of a simulation. Currently...

Description Usage Arguments

View source: R/vis.R

Description

Function to animate the results of a simulation. Currently only supports simulations done in two dimensions. Will eventually support higher dimensions using t-sne dimension reduction.

Usage

1
2
sim_animation(sim_ob, file_name = NULL, view = FALSE, expand_factor = 0.1,
  contour_res = 25, height = 300, width = 400, res = 72)

Arguments

sim_ob

nichefillr_sim object containing the results of a simulation.

file_name

(optional) Path to to save the animation to. If NULL, and view = TRUE, animation will be output to the rstudio viewer.

expand_factor

Factor by which to expand x and y axes beyond the minimum and maximum found in the simulated species (allows more of the fitness landscape context to ve shown)

contour_res

Resolution for the fitness contours, in terms of how many points per axis to calculate fitness for.


rdinnager/nichefillr documentation built on Dec. 3, 2019, 7:13 a.m.