% Generated by roxygen2: do not edit by hand % Please edit documentation in R/animate_options.R \name{anim_options} \alias{anim_options} \alias{set_anim_options} \title{Animation Options} \usage{ anim_options(transition_length = NULL, state_length = NULL, ease_default = NULL, ease_other = NULL, enter = NULL, exit = NULL, text_family = NULL, title_family = NULL, text_size = NULL, title_size = NULL, color_header = NULL, color_other = NULL, color_missing = NULL, color_fun = NULL, text_color = NULL, ...) set_anim_options(anim_opts = anim_options()) } \arguments{ \item{transition_length}{The relative length of the transition. Will be recycled to match the number of states in the data} \item{state_length}{The relative length of the pause at the states. Will be recycled to match the number of states in the data} \item{ease_default}{Default aes easing function. See \code{\link[tweenr:display_ease]{tweenr::display_ease()}} for more options. The tidyexplain default value is \code{sine-in-out}.} \item{ease_other}{Additional aes easing options, specified as a named list. List entries are named with the aesthetic to which the easeing should be applied, consistent with \code{\link[gganimate:ease_aes]{gganimate::ease_aes()}}. E.g. \code{list(color = "sine")}.} \item{enter}{Enter fading function applied to objects in the animation. See \link[gganimate:enter_exit]{gganimate::enter_exit} for a complete list of options. The tidyexplain default is \code{\link[gganimate:enter_fade]{gganimate::enter_fade()}}.} \item{exit}{Exit fading function applied to objects in the animation. See \link[gganimate:enter_exit]{gganimate::enter_exit} for a complete list of options. The tidyexplain default is \code{\link[gganimate:exit_fade]{gganimate::exit_fade()}}.} \item{text_family}{Font family for the plot text, default is "Fira Mono". Use \code{\link[=set_font_size]{set_font_size()}} to set global default font sizes.} \item{title_family}{Font family for the plot title, default is "Fira Mono". Use \code{\link[=set_font_size]{set_font_size()}} to set global default font sizes.} \item{text_size}{Font size of the plot text, default is 5.} \item{title_size}{Font size of the plot title, default is 17.} \item{color_header}{Color of the header row.} \item{color_other}{Color of the cells that are not highlighted otherwise.} \item{color_missing}{Color of the missing cells.} \item{color_fun}{A function that generates the colors for the highlighted cells, default is \code{\link[scales:brewer_pal]{scales::brewer_pal()}} Set1.} \item{text_color}{Color of the text of the cells, default is a black or white, based on the background color of the cell.} \item{anim_opts}{An \code{\link[=anim_options]{anim_options()}} options list.} } \description{ Helper function to set animation and plotting options to be passed to \code{\link[=animate_plot]{animate_plot()}} and \code{\link[=static_plot]{static_plot()}}. } \section{Functions}{ \itemize{ \item \code{set_anim_options}: Set default animation options for the current session. }}