Usage
get_significance_colors(
p_values,
thresholds = c(0.001, 0.01, 0.05),
colors = c("#d73027", "#fc8d59", "#fee08b"),
default_color = "#999999"
)
Arguments
- p_values
Numeric vector of p-values
- thresholds
Numeric vector of significance thresholds
- colors
Character vector of colors for each significance level
- default_color
Default color for non-significant values
Value
Character vector of colors