Selaa lähdekoodia

updated ggplot theme_env

theme_env seems to have been retired from ggplot, replaced with theme_void
pkg
David 7 vuotta sitten
vanhempi
commit
e51273d00b
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      R/animate_options.R

+ 2
- 2
R/animate_options.R Näytä tiedosto

@@ -201,13 +201,13 @@ set_title_size <- function(size) {
get_text_size <- function(x = NULL) {
if (!is.null(x)) return(x)
plot_settings$anim_opts$text_size %||%
getFromNamespace("theme_env", "ggplot2")$current$text$size %||%
getFromNamespace("theme_void", "ggplot2")()$text$size %||%
plot_settings$default$text_size
}

get_title_size <- function(x = NULL) {
if (!is.null(x)) return(x)
plot_settings$anim_opts$title_size %||%
getFromNamespace("theme_env", "ggplot2")$current$plot.title$size %||%
getFromNamespace("theme_void", "ggplot2")()$plot.title$size %||%
plot_settings$default$title_size
}

Loading…
Peruuta
Tallenna