You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 line
3.1KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/animate_options.R
  3. \name{anim_options}
  4. \alias{anim_options}
  5. \alias{set_anim_options}
  6. \title{Animation Options}
  7. \usage{
  8. anim_options(transition_length = NULL, state_length = NULL,
  9. ease_default = NULL, ease_other = NULL, enter = NULL,
  10. exit = NULL, text_family = NULL, title_family = NULL,
  11. text_size = NULL, title_size = NULL, color_header = NULL,
  12. color_other = NULL, color_missing = NULL, color_fun = NULL,
  13. text_color = NULL, cell_width = NULL, cell_height = NULL, ...)
  14. set_anim_options(anim_opts = anim_options())
  15. }
  16. \arguments{
  17. \item{transition_length}{The relative length of the transition. Will be
  18. recycled to match the number of states in the data}
  19. \item{state_length}{The relative length of the pause at the states. Will be
  20. recycled to match the number of states in the data}
  21. \item{ease_default}{Default aes easing function. See \code{\link[tweenr:display_ease]{tweenr::display_ease()}}
  22. for more options. The tidyexplain default value is \code{sine-in-out}.}
  23. \item{ease_other}{Additional aes easing options, specified as a named list.
  24. List entries are named with the aesthetic to which the easeing should be
  25. applied, consistent with \code{\link[gganimate:ease_aes]{gganimate::ease_aes()}}. E.g. \code{list(color = "sine")}.}
  26. \item{enter}{Enter fading function applied to objects in the animation. See
  27. \link[gganimate:enter_exit]{gganimate::enter_exit} for a complete list of options. The tidyexplain
  28. default is \code{\link[gganimate:enter_fade]{gganimate::enter_fade()}}.}
  29. \item{exit}{Exit fading function applied to objects in the animation. See
  30. \link[gganimate:enter_exit]{gganimate::enter_exit} for a complete list of options. The tidyexplain
  31. default is \code{\link[gganimate:exit_fade]{gganimate::exit_fade()}}.}
  32. \item{text_family}{Font family for the plot text, default is "Fira Mono". Use
  33. \code{\link[=set_font_size]{set_font_size()}} to set global default font sizes.}
  34. \item{title_family}{Font family for the plot title, default is "Fira Mono".
  35. Use \code{\link[=set_font_size]{set_font_size()}} to set global default font sizes.}
  36. \item{text_size}{Font size of the plot text, default is 5.}
  37. \item{title_size}{Font size of the plot title, default is 17.}
  38. \item{color_header}{Color of the header row.}
  39. \item{color_other}{Color of the cells that are not highlighted otherwise.}
  40. \item{color_missing}{Color of the missing cells.}
  41. \item{color_fun}{A function that generates the colors for the highlighted
  42. cells, default is \code{\link[scales:brewer_pal]{scales::brewer_pal()}} Set1.}
  43. \item{text_color}{Color of the text of the cells, default is a black or
  44. white, based on the background color of the cell.}
  45. \item{cell_width}{Width of a cell, default is 1.}
  46. \item{cell_height}{Height of a cell, default is 1.}
  47. \item{anim_opts}{An \code{\link[=anim_options]{anim_options()}} options list.}
  48. }
  49. \description{
  50. Helper function to set animation and plotting options to be passed to
  51. \code{\link[=animate_plot]{animate_plot()}} and \code{\link[=static_plot]{static_plot()}}.
  52. }
  53. \section{Functions}{
  54. \itemize{
  55. \item \code{set_anim_options}: Set default animation options for the current session.
  56. }}