Learn R Programming

palette (version 0.0.2)

plot_palette: Plot Palette Colors

Description

Plot Palette Colors

Usage

plot_palette(x, use_names = TRUE, use_ggplot = TRUE)

Value

A ggplot (if ggplot2 is available) or base plot of the palette

Arguments

x

a palette

use_names

Should the names of the palette be used as labels? Default: TRUE.

use_ggplot

Should the plot be made with ggplot2 if available? Default: TRUE.

Examples

Run this code
plot_palette(roygbiv)

Run the code above in your browser using DataLab