View source: R/legend_annotation_utils.R
get_significance_colors | R Documentation |
Get Significance Colors
get_significance_colors(
p_values,
thresholds = c(0.001, 0.01, 0.05),
colors = c("#d73027", "#fc8d59", "#fee08b"),
default_color = "#999999"
)
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 |
Character vector of colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.