animate_matrix: Animate matrix

View source: R/animate_matrix.R

animate_matrixR Documentation

Animate matrix

Description

Animate matrix

Usage

animate_matrix(
  transformations,
  points_start = NULL,
  return_graph_objects = FALSE,
  return_static = FALSE,
  datasaurus = FALSE
)

Arguments

transformations

List of matrix transformations to apply (length will determine total number of explicit frames in animation.)

points_start

Dataframe containing x and y columns of points that will be plotted (if any coordinate is greater than magnitude 5, coordinates will be automatically scaled down).

return_graph_objects

Logical indicating whether to return the dataframe containing the objects that would have gone into the animation.

return_static

Logical indicating whether to return the static ggplot graph.

datasaurus

Logical, where TRUE is equivalent to is equivalent to setting points_start = filter(datasauRus::datasaurus_dozen, dataset == "dino")

Value

An animation created by gganimate.


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.