Learn R Programming

spinifex (version 0.2.5)

render_plotly: Render the slides as a plotly animation.

Description

Takes the result of array2df() and renders them into a plotly animation.

Usage

render_plotly(fps = 3L, tooltip = "none", html_filename = NULL, ...)

Arguments

fps

Frames/slides shown per second. Defaults to 3.

tooltip

Character vector of aesthetic mappings to show in the plotly hover-over tooltip. Defaults to "none". "all" shows all the aesthetic mappings. The order of variables controls the order they appear. For example, tooltip = c("id", "frame", "x", "y", "category", "color").

html_filename

Optional, saves the plotly object as an HTML widget to this string (without folderpath). Defaults to NULL (not saved). For more control call htmlwidgets::saveWidget() on a return object of render_plotly().

...

Optionally passes arguments to the projection points inside the aesthetics; geom_point(aes(...)).