text_contrast: text_contrast

View source: R/ez_col.R

text_contrastR Documentation

text_contrast

Description

text_contrast

Usage

text_contrast(x)

Arguments

x

Vector of colours.

Value

Vector indicating whether black or white should be used for text overlayed on x.

Examples

text_contrast("#000000")
text_contrast("black")

wkostelecki/ezplot documentation built on Feb. 1, 2024, 10:58 p.m.