view_palette: Easy way to view the created palette

Description Usage Arguments Value Examples

View source: R/view_palette.R

Description

Easy way to view the created palette

Usage

1
view_palette(monochrome_palette, view_labels = TRUE)

Arguments

monochrome_palette

Vector of hex colour codes, or a generate_palette() call

view_labels

Logical. If view_palette is set to TRUE, view_labels determines whether or not the hex colour codes are shown on the palette displayed in the plot window.

Value

A plot showing all the colours in the palette on the same row

Examples

1
2
view_palette(c("#464E69", "#8C90A1", "#D1D2D9"))
view_palette(generate_palette("pink", "go_darker", n_colours = 3))

monochromeR documentation built on Dec. 20, 2021, 5:07 p.m.