vlkr_colors_contrast: Given a vector of hex fill colors, choose an appropriate...

View source: R/plots.R

vlkr_colors_contrastR Documentation

Given a vector of hex fill colors, choose an appropriate color for text

Description

Given a vector of hex fill colors, choose an appropriate color for text

Usage

vlkr_colors_contrast(colors, threshold = 0.5)

Arguments

colors

A vector of hex colors

threshold

Luminance theshold for choosing black over white

Value

A vector of the same length as fill_colors with white or black colors.


volker documentation built on Nov. 5, 2025, 5:21 p.m.