lengthDist {riboSeqR}R Documentation

A function plotting the density of lengths in a riboData object.

Description

riboData object contain data on multiple lengths of sequenced reads. This function plots the density of those lengths.

Usage

lengthDist(riboDat, add = FALSE, legend = NULL, ...)

Arguments

riboDat

riboData object to be plotted

add

Should the curve be added to an existing plot, or a new plot drawn?

legend

Legend text, if given.

...

Additional arguments to be passed to ‘plot’ or ‘legend’.

Author(s)

Thomas J. Hardcastle

Examples

#ribosomal footprint data
datadir <- system.file("extdata", package = "riboSeqR")
ribofiles <- paste(datadir, 
                   "/chlamy236_plus_deNovo_plusOnly_Index", c(17,3,5,7), sep = "")
rnafiles <- paste(datadir, 
                  "/chlamy236_plus_deNovo_plusOnly_Index", c(10,12,14,16), sep = "")

riboDat <- readRibodata(ribofiles, rnafiles, replicates = c("WT", "WT",
"M", "M"))

lengthDist(riboDat)

[Package riboSeqR version 1.24.0 Index]