plotlyHeatmap: A wrapper of the plot_ly function to create a heatmap

View source: R/plotlyHeatmap.R

plotlyHeatmapR Documentation

A wrapper of the plot_ly function to create a heatmap

Description

Produces a heatmap using the plotly package.

Usage

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)
)

Arguments

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 brewer.pal.info for valid names) or a palette function such as col_numeric

hoverText

a matrix the same dimensions as zMatrix that provides text for mouseovers

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 layout function)

See Also

plot_ly


EMSL-Computing/fticRanalysis documentation built on Dec. 18, 2024, 9:51 p.m.