View source: R/color_theme_info.R
color.theme.info | R Documentation |
color.theme.info()
returns a data frame listing all available color themes.
color.theme.env()
provides direct access to the environment where the color themes are registered.
color.theme.info(env = color.theme.env())
color.theme.env()
env |
an environment where the color themes are registered. |
These functions provide tools for inspecting the color themes available in the current R session.
color.theme.info()
is the primary user-facing function for discovering themes by name, source, and type.
color.theme.env()
is an advanced function that returns the environment currently used as the theme registry.
It first checks for a user-specified environment via getOption("midr.color.theme.env")
.
If this option is NULL
(the default), the function returns the package's internal environment where the default themes are stored.
color.theme.info()
returns a data frame with columns "name", "source", and "type".
color.theme.env()
returns the environment currently used as the default theme registry.
color.theme
, set.color.theme
# Get a data frame of all available themes
head(color.theme.info())
# Get the environment where color themes are stored
theme_env <- color.theme.env()
names(theme_env)[1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.