colorize_levels | R Documentation |
Colorize Levels
colorize_levels( x, colors = getOption("lgr.colors", NULL), transform = identity )
x |
|
colors |
A |
transform |
a |
a character
vector wit color ANSI codes
Other formatting utils:
label_levels()
cat(colorize_levels(c(100, 200))) cat(colorize_levels(c("trace", "warn ", "DEBUG"))) cat(colorize_levels(c("trace", "warn ", "DEBUG"), transform = function(x) strtrim(x, 1) ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.