Learn R Programming

superheat (version 0.1.0)

generate_var_label: Generate heatmap variable labels.

Description

Generate heatmap variable labels.

Usage

generate_var_label(names, 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

names
a vector specifying the label names.
location
will these labels be on the bottom ("bottom") or on the left ("left)?
label.col
a vector specifying the 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.