Learn R Programming

tcR (version 2.2.4)

vis.heatmap: Heatmap.

Description

Plot a heatmap from a matrix or a data.frame

Usage

vis.heatmap(.data, .title = "Number of shared clonotypes",
  .labs = c("Sample", "Sample"), .legend = "Shared clonotypes",
  .na.value = NA, .text = T, .scientific = FALSE,
  .signif.digits = 4, .size.text = 4, .no.legend = F, .no.labs = F)

Arguments

.data

Either a matrix with colnames and rownames specifyed or a data.frame with the first column of strings for row names and other columns stands for values.

.title

Main title of the plot.

.labs

Labs names. Character vector of length 2 (for naming x-axis and y-axis).

.legend

Title for the legend.

.na.value

Replace NAs with this values.

.text

if T then print .data values at tiles.

.scientific

If T then force show scientific values in the heatmap plot.

.signif.digits

Number of significant digits to show. Default - 4.

.size.text

Size for the text in the cells of the heatmap, 4 by default.

.no.legend

If T than remove the legend from the plot.

.no.labs

If T than remove x / y labels names from the plot.

Value

ggplot object.

Examples

Run this code
# NOT RUN {
# Load your data.
load('immdata.rda')
# Perform cloneset overlap by amino acid sequences with V-segments.
imm.av <- repOverlap(immdata, .seq = 'aa', .vgene = T)
# Plot a heatmap.
vis.heatmap(imm.av, .title = 'Immdata - (ave)-intersection')
# }

Run the code above in your browser using DataLab