preview_theme: Preview Prism themes

View source: R/preview_theme.R

preview_themeR Documentation

Preview Prism themes

Description

Quickly generate a preview of a ggprism theme. See names(ggprism_data$themes) for valid palette names.

Usage

preview_theme(palette)

Arguments

palette

string. Palette name.

Value

Returns an object of class ggplot.

Examples

library(ggplot2)

## see names of available themes
names(ggprism_data$themes)

## preview a theme
preview_theme("floral")

csdaw/ggprism documentation built on March 28, 2024, 3:09 p.m.