Learn R Programming

ezplot (version 0.7.13)

text_contrast: text_contrast

Description

text_contrast

Usage

text_contrast(x)

Value

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

Arguments

x

Vector of colours.

Examples

Run this code
text_contrast("#000000")
text_contrast("black")

Run the code above in your browser using DataLab