Sfoglia il codice sorgente

updated ggplot theme_env

theme_env seems to have been retired from ggplot, replaced with theme_void
pkg
David 7 anni fa
parent
commit
e51273d00b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      R/animate_options.R

+ 2
- 2
R/animate_options.R Vedi File

@@ -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…
Annulla
Salva