nearest_r_color: Compute the closest R color for a set of hex colors

View source: R/conversion.R

nearest_r_colorR Documentation

Compute the closest R color for a set of hex colors

Description

This uses colors(distinct = TRUE).

Usage

nearest_r_color(color_vec)

Arguments

color_vec

A character vector of the hex color codes

Value

A character vector of color names.


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