Skip to contents

Creates a custom theme for ggplot2 visualizations with support for dark and light modes

Usage

ctheme(mode = "dark")

Arguments

mode

Character string specifying the theme mode ("dark" or "light")

Value

A ggplot2 theme object

Examples

if (FALSE) { # \dontrun{
# Dark mode
theme_set(ctheme("dark"))

# Light mode
theme_set(ctheme("light"))
} # }