Learn R Programming

poliscidata (version 2.3.0)

SetTextContrastColor: Sets contrasting color for text

Description

Sets color for text that effectively contrasts with the background color specified. Used by the Colors function.

Usage

SetTextContrastColor(color)

Arguments

color

A color

Value

Returns either "black" or "white"