Description Usage Arguments Value Author(s) Examples
Generate color gradient for, e.g. gene expression.
1 2 3 4 5 | get_color_gradient(
x,
col = colorRampPalette(c("Blue", "Red"))(100),
breaks = seq(-2, 2, length.out = 100)
)
|
x |
(numeric) Vector based on which color gradient is generated. |
col |
(character) Color vector. |
breaks |
(numeric) A set of breakpoints for the colors. Must be the same length of col. |
(character) Colors.
DING, HONGXU (hd2326@columbia.edu)
1 | get_color_gradient(-2:2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.