hmOptions | R Documentation |
Change options for a d3heatmap
hmOptions(
d3heatmap,
title,
scale = c("none", "row", "column"),
scale.by.range,
na.rm,
na.value,
show.grid,
animation.duration,
reverse.columns
)
d3heatmap |
a d3heatmap object created from the d3heatmap() |
title |
string Plot title. Defaults to |
scale |
character indicating if the values should be centered and scaled in either the row direction or the column direction, or none. The default is "none". |
scale.by.range |
logical indicating whether to scale rows or columns by
the range of each row and column. Setting this parameter to |
na.rm |
logical indicating whether NA's should be removed. |
na.value |
numeric indicating where NA's should be substituted to trigger the NA color. |
show.grid |
|
animation.duration |
Number of milliseconds to animate zooming in and
out. For large |
reverse.columns |
logical indicating if the column order should be reversed for plotting. Default (when missing) - is FALSE, unless symmetrical is TRUE... useful for correlation matrices. |
Modified d3heatmap object
The interface was inspired by dygraphs
heatmap, heatmap.2
## Not run:
d3heatmap(mtcars, scale = "column", col = "Blues") %>%
hmOptions(scale.by.range = TRUE, show.grid = FALSE,
animation.duration = 400)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.