color_lab_values | R Documentation |
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")
)
x |
( |
classes |
( |
colors |
( |
default_color |
( |
icons |
( |
a character vector where each element is a formatted HTML tag corresponding to
a value in x
.
color_lab_values(c("LOW", "LOW", "HIGH", "NORMAL", "HIGH"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.