Learn R Programming

spinifex (version 0.1.0)

render_: Render the ggplot before the animation package

Description

Typically called by render_plotly() or render_gganimate(). Takes the result of array2df(), and renders them into a ggplot2 object.

Usage

render_(slides, manip_col = "blue", col = "black", pch = 20,
  axes = "center")

Arguments

slides

The result of array2df(), a long df of the projected frames.

manip_col

String of the color to highlight the manip_var. Defaults to "blue".

col

Color of the projected points. Defaults to "black".

pch

Point character of the projected points. Defaults to 20.

axes

Position of the axes: "center", "bottomleft" or "off". Defaults to "center".

Value

A ggplot2 object ready to be called by render_plotly() or render_gganimate().