plot_trajectories: Barplot of birds counts par site and per time step, given...

View source: R/plot_trajectories.R

plot_trajectoriesR Documentation

Barplot of birds counts par site and per time step, given bird trajectories.

Description

Barplot of birds counts par site and per time step, given bird trajectories.

Usage

plot_trajectories(migr, traj)

Arguments

migr

A migration structure.

traj

A trajectory matrix with a trajectory for each bird, matrix N x (horizon+1).

Value

Barplot of birds counts and return a count matrix (S+2) x (horizon+1) with, at each time step (0,...,horizon), specify the number of bird on each site (rows 1,...,S), flying (row S+1) and dead (row S+2).

Examples

migr <- generate_toy_migration()
traj <- generate_trajectories( migr )
counts <- plot_trajectories( migr, traj )

FlywayNet documentation built on March 18, 2022, 7:21 p.m.