color_p_value: Colorful P-Values

Description Usage Arguments Value Examples

View source: R/tables.R View source: R/tables.R

Description

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.

Usage

1
color_p_value(var_p_value)

Arguments

var_p_value

Numeric variable of p-values to be colored conditionally.

Value

New character string variable with html code for color of p-value.

Examples

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))

dgrisafe/styledom documentation built on April 9, 2021, 5:44 a.m.