pvalcol | R Documentation |
Associate colors to p-values according to their value.
pvalcol(pvals, col, pvlims = c(0.05, 0.01))
pvals |
Vector of p-values to which associate colors. |
col |
Colors Vector of colors to associate with the p-values
given in |
pvlims |
Vector of p-value upper limits, first value should be 1. |
A vector of colors associated with p-values given in
pvals
.
micompr:::pvalcol(c(0.06, 0.9, 0.0001, 0.3, 0.2, 0.02),
c("darkgreen", "yellow", "red"))
# [1] "darkgreen" "darkgreen" "red" "darkgreen" "darkgreen" "yellow"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.