.colorByPvalue | R Documentation |
This function helps defining color-gradient based on p-Values. This fuction requires package RColorBrewer being installed
.colorByPvalue(
x,
br = NULL,
col = NULL,
asIndex = FALSE,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
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 |
This function retruns a color-gradient based on p-Values
(for PCA) plotPCAw
)
.colorByPvalue((1:10)/10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.