vis.heatmap: Heatmap.

Description Usage Arguments Value Examples

Description

Plot a heatmap from a matrix or a data.frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

1
2
3
4
5
6
7
8
9
## 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')

## End(Not run)

imminfo/tcr documentation built on June 13, 2020, 7:01 a.m.