Learn R Programming

rtemis (version 0.79)

dplot3.heatmap: Dynamic Heatmap

Description

Draw a dynamic heatmap using heatmaply

Usage

dplot3.heatmap(z, Rowv = TRUE, Colv = TRUE, cluster = FALSE,
  symm = FALSE, cellnote = NULL, colorGrad.n = 101, colors = NULL,
  space = "rgb", lo = "#18A3AC", lomid = NULL, mid = "white",
  midhi = NULL, hi = "#F48024", k.row = NA, k.col = NA,
  grid.gap = 0, limits = NULL, margins = NULL, main = NULL,
  xlab = NULL, ylab = NULL, key.title = NULL,
  showticklabels = NULL, ...)

Arguments

z

Input matrix

Rowv

Logical or dendrogram. If Logical: Compute dendrogram and reorder rows. Defaults to FALSE If dendrogram: use as is, without reordering See more at heatmaply::heatmaply("Rowv")

Colv

Logical or dendrogram. If Logical: Compute dendrogram and reorder columns. Defaults to FALSE If dendrogram: use as is, without reordering See more at heatmaply::heatmaply("Colv")

cluster

Logical: If TRUE, set Rowv and Colv to TRUE

symm

Logical: If TRUE, treat x symmetrically - x must be a square matrix. Default = FALSE

cellnote

Matrix with values to be desplayed on hover. Defaults to ddSci(z)

colors

String: Acts as a shortcut to defining lo, mid, etc for a number of defaults: "french", "penn", "grnblkred",

space

String: Which colorspace to use. Option: "rgb", or "Lab". Default = "rgb". Recommendation: If mid is "white" or "black" (default), use "rgb", otherwise "Lab"

lo

Color for low end

lomid

Color for low-mid

mid

Color for middle of the range or "mean", which will result in colorOp(c(lo, hi), "mean"). If mid = NA, then only lo and hi are used to create the color gradient.

midhi

Color for middle-high

hi

Color for high end

k.row

Integer: Number of desired number of groups by which to color dendrogram branches in the rows. Default = NA (determined automatically). See heatmaply::heatmaply("k_row")

k.col

Integer: Number of desired number of groups by which to color dendrogram branches in the columns. Default = NA (determined automatically). See heatmaply::heatmaply("k_col")

grid.gap

Integer: Space between cells. Default = 0 (no space)

limits

Float, length 2: Determine color range. Default = NULL, which automatically centers values around 0

margins

Float, length 4: Heatmap margins. Default = c(30, 30, 30, 30)

main

String: Plot title

xlab

String: x-axis label

ylab

String: y-axis label

key.title

String: Title for the color key. Default = NULL (no title)

...

Additional arguments to be passed to heatmaply::heatmaply