View source: R/plot_trajectories.R
plot_trajectories | R Documentation |
Barplot of birds counts par site and per time step, given bird trajectories.
plot_trajectories(migr, traj)
migr |
A migration structure. |
traj |
A trajectory matrix with a trajectory for each bird, matrix N x (horizon+1). |
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).
migr <- generate_toy_migration() traj <- generate_trajectories( migr ) counts <- plot_trajectories( migr, traj )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.