colorspace_plot: Generate a plot in alpha-beta colorspace for a palette

View source: R/plots.R

colorspace_plotR Documentation

Generate a plot in alpha-beta colorspace for a palette

Description

The resulting plot will be a 2-D projection onto the HSV/HSL chromaticity plane. See https://en.wikipedia.org/wiki/HSL_and_HSV#Hue_and_chroma for more information.

Usage

colorspace_plot(color_vec, show_pures = TRUE)

Arguments

color_vec

a character vector containing colors as either hex values (starting with #) or R colors

show_pures

a logical value indicating whether or not to plot points for pure colors

Value

a ggplot2 plot with palette colors in alpha-beta space.


hypercompetent/colorway documentation built on April 2, 2024, 1:44 a.m.