Learn R Programming

FlywayNet (version 0.1.0)

plot_trajectories: 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

Run this code
# NOT RUN {
migr <- generate_toy_migration()
traj <- generate_trajectories( migr )
counts <- plot_trajectories( migr, traj )
# }

Run the code above in your browser using DataLab