plotDistance2Codon: Metaplot of P site distribution

Description Usage Arguments Value Examples

View source: R/plotDistance2Codon.R

Description

Metaplot of P site distribution in all the CDS aligned by the start codon or stop codon.

Usage

1
2
3
4
5
6
plotDistance2Codon(
  reads,
  start = TRUE,
  anchor = 50,
  col = c(Frame_0 = "#009E73", Frame_1 = "#D55E00", Frame_2 = "#0072B2")
)

Arguments

reads

Output of assignReadingFrame.

start

Plot for start codon or stop codon.

anchor

The maximal xlim or (min, max) position for plot.

col

Colors for different reading frame.

Value

Invisible height of the barplot.

Examples

1
2
3
4
5
pcs <- readRDS(system.file("extdata", "samplePc.rds",
               package="ribosomeProfilingQC"))
plotDistance2Codon(pcs)
#plotDistance2Codon(pcs, start=FALSE)
#plotDistance2Codon(pcs, anchor=c(-10, 20))

ribosomeProfilingQC documentation built on March 13, 2021, 2:01 a.m.