before the additional arguments such as color_header = "black" would trigger a warning that the argument is not recognised. Now the color arguments passed to add_color_join
- Collected in animate_options.R
- Sets global defaults in plot_settings environment
- Adds ability to set animation options, similar to theme_set() from ggplot2
- Adds getters for current (if set) or default animation options
Merge branch 'pkg-add-anim-options-merge' into pkg-add-anim-options
# Conflicts:
# NAMESPACE
# R/animate_tidyr.R
# R/plot_helpers.R
# man/anim_options.Rd
# man/animate_gather.Rd
# man/animate_spread.Rd
# man/static_plot.Rd
And demonstrates usage with the tidyr gather/spread animators. In essence, user-facing functions take an argument `anim_opts = anim_options()` as a last argument (after ... if applicable). These options should be passed through to lower level functions and should be given to `animate_plot()` and `static_plot()`.
This implementation actually doesn't break previous functions, but the join and set families will need to be updated to match.