Skip to content

ClaireGuerin/anim-vigil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anim-vigil

Creates animated gif plots for visualisation of vigilance-predation data.

Visual example

Exploration Trait evolution
eanim vanim

Installation

Simply download this repository and place wherever convenient on your machine.

Requirements

This code was developped under Linux (Ubuntu 20.04.2 LTS) with R v4.0+. Rust and xdg-utils are required. To install on Ubuntu, run

sudo apt-get update -y
apt-get install cargo
apt-get install -y xdg-utils

Usage

Create simulation output files with Python code or C++ code. The programs will create output text files with vigilance means over generation times (vigilance_out.txt), resources change (resources_out.txt) and individual movement (exploration_out.txt) over ecological time.

You can request visualization directly from the above programs if this repository is downloaded inside their root, or run the present R code animate-sim.r to obtain animated visualisations of the evolution of vigilance (vigilance_out.gif) and individual movement and resources on the grid (grid_out.txt).

About

Creates animated gif plots for visualisation of vigilance-predation data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages