Learn R Programming

tcR (version 2.0)

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)

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.

Value

  • ggplot object.

Examples

Run this code
# 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