powered by
Map value and level characters to values with with proper html tags, colors and icons.
color_lab_values( x, classes = c("HIGH", "NORMAL", "LOW"), colors = list(HIGH = "red", NORMAL = "grey", LOW = "blue"), default_color = "black", icons = list(HIGH = "glyphicon glyphicon-arrow-up", LOW = "glyphicon glyphicon-arrow-down") )
a character vector where each element is a formatted HTML tag corresponding to a value in x.
x
(character) vector with elements under the format (value level).
character
value level
(character) classes vector.
(list) color per class.
list
(character) default color.
(list) certain icons per level.
color_lab_values(c("LOW", "LOW", "HIGH", "NORMAL", "HIGH"))
Run the code above in your browser using DataLab