plotSpectratype: plot spectratype

Description Usage Arguments Value Examples

View source: R/plotFunctions.R

Description

function plots spectratype for V genes of one repertoire (distribution of lengths of CDR3 in amio-acid).

Usage

1
plotSpectratype(x, sampleName = NULL, scale = c("counts", "percent", "cpm"))

Arguments

x

an object of class [RepSeqExperiment]

sampleName

sample to plot, if NULL the first sample of x is plotted.

scale

the type of bars in term of counts, percentages or count per million.

Value

a barplot

Examples

1
2
3
4
5
6
7
8
## Not run: 
# The package RepSeqData contains example datasets 
library(RepSeqData)
snames <- rownames(sData(RepSeqData))
# plot Spectratype of the first sample, all V together.
plotSpectratype(x = RepSeqData, sampleName = snames[1], scale = "counts")

## End(Not run)

ph-pham/RepSeq documentation built on Dec. 22, 2021, 7:47 a.m.