vis.immunr_public_repertoire: Public repertoire visualisation

Description Usage Arguments Value Examples

View source: R/vis.R

Description

Public repertoire visualisation

Usage

1
2
## S3 method for class 'immunr_public_repertoire'
vis(.data, .plot = c("freq", "clonotypes"), ...)

Arguments

.data

Public repertoire, an output from pubRep.

.plot

A string specifying the plot type:

- "freq" for visualisation of the distribution of occurrences of clonotypes and their frequencies using vis_public_frequencies.

- "clonotypes" for visualisation of public clonotype frequenciy correlations between pairs of samples using vis_public_clonotypes

...

Further arguments passed vis_public_frequencies or vis_public_clonotypes, depending on the ".plot" argument.

Value

A ggplot2 object.

Examples

1
2
3
4
5
6
7
data(immdata)
immdata$data <- lapply(immdata$data, head, 500)
pr <- pubRep(immdata$data, .verbose = FALSE)
vis(pr, "freq")
vis(pr, "freq", .type = "none")

vis(pr, "clonotypes", 1, 2)

abrown435/immunarch-test documentation built on July 29, 2020, 12:04 a.m.