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")

ggprism documentation built on May 29, 2024, 5:59 a.m.