View source: R/plotlyHeatmap.R
plotlyHeatmap | R Documentation |
Produces a heatmap using the plotly package.
plotlyHeatmap(
zMatrix,
xLabels = colnames(zMatrix),
yLabels = rownames(zMatrix),
pal = "YlOrRd",
hoverText = NA,
colorbarTitle = "Color Scale",
zLimits = range(zMatrix, na.rm = TRUE),
margins = list(l = 200)
)
zMatrix |
numeric matrix of values for the heatmap |
xLabels |
character vector of x-axis labels (corresponding to columns of zMatrix) |
yLabels |
character vector of x-axis labels (corresponding to rows of zMatrix) |
pal |
color palette, can be the name of an RColorBrewer palette
(see |
hoverText |
a matrix the same dimensions as |
colorbarTitle |
a title to appear over the color scale bar |
zLimits |
a vector of length two giving the limits of the z (color) axis, which is used to determine colors |
margins |
list of margin parameters
(see |
plot_ly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.