Description Usage Arguments Value Examples
View source: R/tables.R View source: R/tables.R
Color the p-values in html so they change colors conditional on values. Red indicates p-values less than 0.05. Orange indicates p-values less than 0.15.
1 | color_p_value(var_p_value)
|
var_p_value |
Numeric variable of p-values to be colored conditionally. |
New character string variable with html code for color of p-value.
1 2 3 | p_val <- c(0.00, 0.03, 0.05, 0.09, 0.11, 0.12, 0.16, 0.16, 0.21, 0.22)
p_val_color <- color_p_value(p_val)
quick_kable(data.frame(p_val, p_val_color))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.