hmLegend | R Documentation |
Provides options for modifying the legend for a d3heatmap object
hmLegend(
d3heatmap,
show = TRUE,
size,
title,
location = c("fl", "br", "tr", "tl", "bl"),
density = c("histogram", "none"),
density.fill = NULL
)
d3heatmap |
Required A valid d3heatmap object |
show |
Required, logical Show color key and density
information? |
size |
numeric value indicating the relative size of the key. Will multiple the row and column axis sizes. Defaults to 1 |
title |
Optional, character Separate title for color key (legend).
Defaults to |
location |
Required, character Location for legend (color key), either
|
density |
Optional, character indicating whether to superimpose a 'histogram' or no plot ('none') on the color-key (legend). |
density.fill |
Optional, character giving the color for the density
display specified by 'density', defaults to |
Modified d3heatmap object
The interface was inspired by dygraphs
heatmap, heatmap.2
## Not run:
d3heatmap(mtcars, dendrogram = 'none', scale = 'column', srtCol = 30) %>%
hmLegend(show = TRUE, title = "Title", location = "tl")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.