generate_cluster_label: Generate clustered heatmap labels.

Description Usage Arguments Value

View source: R/labels.R

Description

Generate clustered heatmap labels.

Usage

1
2
3
4
generate_cluster_label(membership, location = c("bottom", "left"),
  label.col = NULL, label.text.col = NULL,
  label.text.alignment = c("center", "left", "right"),
  bottom.label.text.size = 5, left.label.text.size = 5, text.angle = NULL)

Arguments

membership

a vector specifying the cluster membership.

location

will these labels be on the bottom ("bottom") or on the left ("left)?

label.col

a vector specifying cluster/variable label color palette.

label.text.col

a character or character vector specifying the cluster/variable label text color.

label.text.alignment

the text alignment of the label text. The default is "center". Alternate options are "left" and "right".

bottom.label.text.size

the size of the bottom heatmap label text. The default is 5.

left.label.text.size

the size of the left heatmap label text. The default is 5.

text.angle

number of degrees to rotate the text on the left cluster/variable labels.

Value

A ggplot2 object of heatmap labels.


superheat documentation built on May 1, 2019, 8:03 p.m.