mocap_finish_animation: Make an animation from a 'mocapr' plot

View source: R/animation_functions.R

mocap_finish_animationR Documentation

Make an animation from a mocapr plot

Description

Make an animation from a mocapr plot

Usage

mocap_finish_animation(.data, ...)

Arguments

.data

A ggplot2 object containing mocap data in the mocapr format.

...

Additional arguments are passed to gganimate::animate.

Value

A gif

Examples

df <- dplyr::filter(mocapr::mocapr_data, movement_nr == 1)
df <- mocapr::project_full_body_to_AP(df)
df <- mocapr::animate_anatomical(df,
                                 return_data = TRUE)
df <- mocapr::mocap_plot_basic(df)
df <- mocapr::mocap_plot_avatar(df)
# mocap_finish_animation(df)

steenharsted/mocapr documentation built on Feb. 1, 2024, 1:49 p.m.