.colorByPvalue {wrGraph} | R Documentation |
Colors based on p-Values
Description
This function helps defining color-gradient based on p-Values. This fuction requires package RColorBrewer being installed
Usage
.colorByPvalue(
x,
br = NULL,
col = NULL,
asIndex = FALSE,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
Arguments
x |
(numeric) p-values (main input) |
br |
(numeric) custom breaks (used with cut) |
col |
custom colors (must be of length(br) -1) |
asIndex |
(logical) custom breaks (used with cut) |
silent |
(logical) suppress messages |
debug |
(logical) supplemental messages for debugging |
callFrom |
(character) allow easier tracking of messages produced |
Value
This function retruns a color-gradient based on p-Values
See Also
(for PCA) plotPCAw
)
Examples
.colorByPvalue((1:10)/10)
[Package wrGraph version 1.3.7 Index]