Description Usage Arguments Value Examples
Create a distinct palette for coloring different heatmap clusters. The
function returns colors for input into ComplexHeatmap:Heatmap()
,
signatureGeneHeatmap()
and signatureHeatmap()
.
1 2 3 4 5 6 | distinctColors(
n,
hues = c("red", "cyan", "orange", "blue", "yellow", "purple", "green", "magenta"),
saturation.range = c(0.7, 1),
value.range = c(0.7, 1)
)
|
n |
an integer describing the number of colors to generate. Required. |
hues |
a vector of character strings indicating the R colors available
from the |
saturation.range |
a numeric vector of length 2 with values between 0
and 1 giving the range of saturation. The default is |
value.range |
a numeric vector of length 2 with values between 0 and 1
giving the range of values. The default is |
A vector of distinct colors that have been converted to HEX from HSV.
1 | distinctColors(10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.