View source: R/plotDistance2Codon.R
plotDistance2Codon | R Documentation |
Metaplot of P site distribution in all the CDS aligned by the start codon or stop codon.
plotDistance2Codon(
reads,
start = TRUE,
anchor = 50,
col = c(Frame_0 = "#009E73", Frame_1 = "#D55E00", Frame_2 = "#0072B2")
)
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. |
Invisible height of the barplot.
pcs <- readRDS(system.file("extdata", "samplePc.rds",
package="ribosomeProfilingQC"))
plotDistance2Codon(pcs)
#plotDistance2Codon(pcs, start=FALSE)
#plotDistance2Codon(pcs, anchor=c(-10, 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.