Changelog
Source:NEWS.md
gganime 0.1.0
First release.
anime()renders a ggplot2 plot written with gganimate syntax as an animated SVG, returned as a self-contained htmlwidget driven by Anime.js, in place of gganimate’s GIF or video.Transitions:
transition_states(),transition_time(),transition_reveal().Geoms: points, lines and paths, bars and columns, areas and ribbons, and polygons.
-
Point shapes: any pch drawn from a single shape (pch 0 to 2, 5, 6, and 15 to
- animates its size and outline width. The shapes drawn from several parts (pch 3, 4, and 7 to 14) hold their size.
Any number of layers in one plot, including two of the same kind and a static layer beside an animated one.
Facets:
facet_wrap()andfacet_grid(), with fixed or free scales.Coords:
coord_cartesian(),coord_fixed()/coord_equal(), andcoord_flip().enter_*()andexit_*(),ease_aes(),shadow_mark(),shadow_trail(), and thecolour,fill,alpha,size, andstrokeaesthetics.Per-frame labels in the title, subtitle, and caption, over one or several lines:
{frame_time},{closest_state},{frame_along},frame,nframes, andprogress.A bare gganimate plot prints through
anime()at the console and in knitr;options(gganime.autoprint = FALSE)keeps gganimate’s own output.animate()is re-exported from gganimate.gganimeOutput()andrenderGganime()for Shiny applications and interactive R Markdown documents.Anything gganime cannot render stops with one message naming the alternative:
coord_polar(),coord_radial(),coord_transform(),coord_sf(),shadow_wake(), andview_*()other thanview_static().