R/themes-registry.R

Defines functions register_builtin_themes

Documented in register_builtin_themes

#' @title Theme Registry Functions
#' @description Functions for registering built-in themes.
#' @name themes-registry
#' @return No return value, called for side effects.
#' @keywords internal
NULL

#' Register Built-in Themes
#'
#' Register all built-in themes.
#'
#' @keywords internal
register_builtin_themes <- function() {
  register_theme("classic", theme_cograph_classic())
  register_theme("colorblind", theme_cograph_colorblind())
  register_theme("gray", theme_cograph_gray())
  register_theme("grey", theme_cograph_gray())  # Alias
  register_theme("dark", theme_cograph_dark())
  register_theme("minimal", theme_cograph_minimal())
  register_theme("viridis", theme_cograph_viridis())
  register_theme("nature", theme_cograph_nature())
}

Try the cograph package in your browser

Any scripts or data that you put into this service are public.

cograph documentation built on April 1, 2026, 1:07 a.m.