Animate migration traffic rates produced by calc_bmtr().
Usage
animate_bmtr(bmtr, bf, title = species(bf), ...)Arguments
- bmtr
A data frame created by calc_bmtr(format = "dataframe")
- bf
A BirdFlow object
- title
The plot title
- ...
Arguments passed on to
plot_bmtrsubsetA subset of the transitions in
bmrtto plot, can be a logical vector of the same length as the number of transitions inbmtr; a numeric index of transitions inbmtr, or a subset of the transition names inbmtr.limitsTwo numbers representing the range in bmtr values to display. Values outside of this range will be truncated to the range. With the default of
NULLthe entire range is plotted.dynamic_scaleIf
TRUEthen the range of the data in each transition is mapped to the color palette. This makes it easier to see the variation within a single transition but results in an inconsistent scale among transitions.coast_linewidthThe line width used to plot the coast. Set to
NULLto skip plotting the coastline.coast_colorThe color used to plot the coastline, or
NULLto skip plotting the coastline.gradient_colorsThe colors palette used to represent the BMTR intensity.
value_labelThe label for the BMTR values.
transformA transformation to apply to the color scaling.
"identity", and"sqrt"are recommended. If"log"is used zeros will be replaced with 1/2 the smallest non-zero value prior to transforming. Legend will still reflect the original values. Passed toggplot2::scale_color_gradient().
Value
A gganim object
