Learn R Programming

plotcli (version 0.2.0)

color_to_term: Convert ggplot2 color to terminal color name

Description

If init_color_mapping() was called, uses the pre-computed mapping. Otherwise falls back to simple hue-based matching.

Usage

color_to_term(color)

Value

A terminal color name (blue, red, green, etc.) or NULL

Arguments

color

A color value (hex, name, or R color)