text_contrast: text_contrast

Description Usage Arguments Value Examples

View source: R/ez_col.R

Description

text_contrast

Usage

1

Arguments

x

Vector of colours.

Value

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

Examples

1
2
text_contrast("#000000")
text_contrast("black")

ezplot documentation built on Aug. 8, 2021, 9:07 a.m.