Learn R Programming

plotcli (version 0.2.0)

init_color_mapping: Initialize color mapping for a set of ggplot colors

Description

This function takes all unique colors from a ggplot and assigns terminal colors to minimize repetition while respecting hue similarity.

Usage

init_color_mapping(ggplot_colors)

Arguments

ggplot_colors

Vector of unique colors from ggplot