tcR (version 1.1)

vis.heatmap: Heatmap.

Description

Plot a heatmap from a matrix or a data.frame

Usage

vis.heatmap(.data, .title = "Number of shared clonotypes",
  .labs = "Subject", .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 1 (for naming both axis with same name) or 2 (first elements stands for x-axis).
.legend
Title for the legend.
.na.value
Replace NAs with this values.
.text
If T than print .data values at tiles.

Value

  • ggplot object.

Examples

Run this code
# Load your data.
load('immdata.rda')
# Perform intersection by amino acid sequences with V-segments.
imm.av <- intersect(immdata, 'ave')
# Plot a heatmap.
vis.heatmap(imm.av, .title = 'Immdata - (ave)-intersection')

Run the code above in your browser using DataLab