Skip to contents

this function animates the output of tracking_algorithm.

Usage

animate_tracks(
  tracks.file,
  tz = "Asia/Riyadh",
  show.sequence = TRUE,
  map.limits = c(31, 63, 10, 35),
  image.size = c(110, 140),
  temp.dir,
  output.path
)

Arguments

tracks.file

the HDF5 file containing the tracks (character string).

tz

the time zone to convert to (character string). Time is generally stored as numeric, and the origin is 1970-01-01 UTC.

show.sequence

logical if to show single cells tracks (TRUE) or not (FALSE).

map.limits

a vector defining the longitude and latitude limits of the map (xmin, xmax, ymin, ymax).

image.size

a vector defining the dimensions of the pngs used in animation in mm (height, width).

temp.dir

path to temporary directory where images is saved before converting to mp4. Please provide a writeable path.

output.path

a character sting of the path to store the animation (i.e. mp4).

Value

a video.

Author

Ahmed Homoudi