interactiveHeatmap: Make a ineractive heatmap with d3heatmap

View source: R/heatmap.R

interactiveHeatmapR Documentation

Make a ineractive heatmap with d3heatmap

Description

This is a generic function which may be useful outside of this package. It produces a heatmap based on an expression matrix and accompanying experiment data in the form of a frame, d3heatmap().

Usage

interactiveHeatmap(
  plotmatrix,
  displaymatrix,
  sample_annotation,
  cluster_rows = TRUE,
  cluster_cols = FALSE,
  scale = "row",
  row_labels,
  colors = colorRampPalette(rev(RColorBrewer::brewer.pal(n = 7, name = "RdYlBu")))(100),
  cexCol = 0.7,
  cexRow = 0.7,
  ...
)

Arguments

plotmatrix

Expression/ other data matrix

displaymatrix

A matrix of values that might be displayed in cells

sample_annotation

A data frame with sample metadata

cluster_rows

Cluster rows?

cluster_cols

Cluster columns?

scale

'row', 'column' or none

row_labels

Vector labels to use for rows

colors

A vector of colors for the heatmap

cexCol

Character expansion factor passed to d3heatmap()

cexRow

Character expansion factor passed to d3heatmap()

...

Additional argments passed to d3heatmap()

Value

output A plot as produced by pheatmap()


pinin4fjords/shinyngs documentation built on Feb. 28, 2024, 10:19 a.m.