瀏覽代碼

updated ggplot theme_env

theme_env seems to have been retired from ggplot, replaced with theme_void
pkg
David 7 年之前
父節點
當前提交
e51273d00b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      R/animate_options.R

+ 2
- 2
R/animate_options.R 查看文件

@@ -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…
取消
儲存