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.
1 2 | sim_animation(sim_ob, file_name = NULL, view = FALSE, expand_factor = 0.1,
contour_res = 25, height = 300, width = 400, res = 72)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.