hmColors | R Documentation |
Set and adjust the colors and color options for the d3heatmap
hmColors(
d3heatmap,
theme = c("", "dark"),
colors,
range,
color.bins,
symmetrical,
na.color
)
d3heatmap |
Required A valid d3heatmap object |
theme |
A custom CSS theme to use. Currently the only valid values
are |
colors |
Either a colorbrewer2.org palette name (e.g.
|
range |
A vector of two numbers, namely the minimum and maximum value
to use when determining the mapping from values to colors. This is
useful when the range of values changes between heatmaps, but colors
should be the same (optional, defaults to the minimum and maximum
of |
color.bins |
numeric The number of colors to generate from the palette, or the breakpoints between the bins |
symmetrical |
logical Arrange color bins symmetrically around zero? |
na.color |
Color of NA values in heatmap. Defaults to neutral gray. |
Modified d3heatmap object
The interface was inspired by dygraphs
heatmap, heatmap.2
## Not run:
d3heatmap(mtcars, dendrogram = 'none', scale = 'column', xaxis_angle = 30) %>%
hmColors(colors = 'RdYlGn', color.bins = 12, symmetrical = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.