Learn R Programming

swatches (version 0.5.0)

show_palette: Display a color palette

Description

Given a character vector (hex RGB values), display palette in graphics window.

Usage

show_palette(palette)

Arguments

palette

vector of character hex RGB values

Examples

Run this code
# NOT RUN {
# built-in palette
keep_the_change <- read_ase(system.file("palettes",
                            "keep_the_change.ase", package="swatches"))
print(keep_the_change)
# show_palette(keep_the_change)
# }

Run the code above in your browser using DataLab