Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

invertLabelColor

Make High Contrast Label Colors


Description

Generate a vector of white or black label colors conditioned on a vector of colors to maximize label contrast.

Usage

invertLabelColor(colors, threshold = 0.65)

Arguments

colors

vector of colors

threshold

black | white threshold

Value

vector of label colors

Author(s)

D.E. Beaudette


aqp

Algorithms for Quantitative Pedology

v1.29
GPL (>= 3)
Authors
Dylan Beaudette [aut, cre], Pierre Roudier [aut, ctb], Andrew Brown [aut, ctb]
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.