Note
This page has been replaced by the article Animated plots of spectral data included in the on-line documentation of R package ‘ggspectra’ version >= 0.3.16.
The reason for this migration is that the interaction between packages ‘ggspectra’, ‘gganimate’ and ‘ggplot2’ is rather fragile and the examples need frequent checks and updates. This is better handled in the package documentation than in a page at this website.