Learn R Programming

ggprism (version 1.0.5)

preview_theme: 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)

Value

Returns an object of class ggplot.

Arguments

palette

string. Palette name.

Examples

Run this code
library(ggplot2)

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

## preview a theme
preview_theme("floral")

Run the code above in your browser using DataLab