Rstats
Animation
Author

George Girton

Published

November 14, 2022

Hummingbirds in flight

Still photo of hummingbird in flight

At the beginning of November, I saw a hummingbird in the garden (not the bird above, which I photographed elsewhere), and started to photograph it. I clicked my phone, took a photo, zoomed in, and started to walk toward the bird. Hovering briefly, it flew up and disappeared into the air.

I have observed, while photographing bees, is that although there may be a single “best frame” of the live photo, examining the motion sequence has its own fascination. A still bee photo is amazing (“be still my bee”), but a bee movie …

The same, I thought, is true of the bird. But how can I share this beauty here?

Click button at right or left to advance by frame:

I ended up using the slickR package, which wraps a javascript carousel library slick (references at end)

Code
library(slickR)

    bird_frame_filenames <- list.files("idata/", pattern=".jpg", full.names = TRUE)

slickR(bird_frame_filenames, height = 250, width='80%') +
  settings(dots = TRUE,
  infinite= TRUE,
  speed = 0,
  fade = TRUE,
  cssEase = 'linear')