gettRNAFeaturePlots: Graphical summary of tRNA features

Description Usage Arguments Value Examples

Description

gettRNAFeaturePlots generates a plot for every feature found with gettRNASummary. Based on the datatype, it will generate suitable point or bar plots. Names of the GRangesList will be used as sample identifiers and used for colouring.

The options tRNA_colour_palette, tRNA_colour_yes and tRNA_colour_no will be used for colours.

Usage

1
2
3
4
gettRNAFeaturePlots(x, plotScores = FALSE, scores = NA, scoreLabel = "Score")

## S4 method for signature 'GRangesList'
gettRNAFeaturePlots(x, plotScores = FALSE, scores = NA, scoreLabel = "Score")

Arguments

x

a named GRangesList object.

plotScores

logical value, whether to plot scores. If scores are not provided with an additional argument, it will try to use the column "score" of the GRanges objects.

scores

a list of scores, which have to have the same dimensions as the GRangesList or GRanges object.

scoreLabel

a string to use as a label for the x axis.

Value

a list of ggplot2 plots. These can be customized further.

Examples

1
2
3
4
5
6
7
8
9
data("gr", package = "tRNA")
data("gr_eco", package = "tRNA")
grl <- GRangesList(Sce = gr,
                   Eco = gr_eco)
plots <- gettRNAFeaturePlots(grl)

# customized plots
plots$length$layers <- plots$length$layers[c(-1,-2)]
plots$length + ggplot2::geom_boxplot()

tRNA documentation built on Nov. 8, 2020, 11:08 p.m.