palette255 | R Documentation |
Expands palettes into 255 colors for plot_genes
and plot_volcano
palette255(palette, ramp = TRUE)
palette |
RColorBrewer palette name or "RdGn" for Red-Green color scale. |
ramp |
use |
A vector of 255 colors, diverging palettes are reversed
Chris Stubben
x <- palette255("RdGn")
plot(c(1,256),c(0,3), type = "n", axes = FALSE, xlab="", ylab="")
i <- 1:255
rect(i, 1, i+1, 2, col=x, border=NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.