powered by
Associate colors to p-values according to their value.
pvalcol(pvals, col, pvlims = c(0.05, 0.01))
A vector of colors associated with p-values given in pvals.
pvals
Vector of p-values to which associate colors.
Colors Vector of colors to associate with the p-values given in pvals according to the limits specified in pvlims.
pvlims
Vector of p-value upper limits, first value should be 1.
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"
Run the code above in your browser using DataLab