color_preview: Quick matrix preview of colors

View source: R/pal_preview.R

color_previewR Documentation

Quick matrix preview of colors

Description

Adapted from show_col() from the scales package. Modified to allow for custom labels.

Usage

color_preview(colors, labels, columns)

Arguments

colors

A character vector of colors

labels

A character vector of labels corresponding to colors

columns

Number of columns. If not supplied, tried to be as square as possible.


christyray/crthemes documentation built on April 14, 2023, 11:18 p.m.