as_color_vctr: Coerce object to a color_vctr

Description Usage Arguments

View source: R/as_color_vctr.R

Description

Coersion function for generation of a color_vctr from an existing vector

Usage

1
as_color_vctr(x, text_color = NA, background = NA, style = NA)

Arguments

x

object to coerce

text_color

A vector of length 1 or same length as vect. Details the color the text should be. Valid values can be found from the 'valid_text_color()' function.NA means no text color.

background

A vector of length 1 or same length as vect. Details the background color of the text. Valid values can be found from the 'valid_background()' function. NA means no background color.

style

A vector of length 1 or same length as vect. Details the style of the text Valid values can be found from the 'valid_style()' function. NA means no styling.


thebioengineer/colortable documentation built on Sept. 2, 2020, 10:35 a.m.