plotExPosition | R Documentation |
The function plotExPosition() generates a bar chart showing the position of the back-spliced exons within the transcript.
plotExPosition(annotatedBSJs, title = "", n = 0, flip = FALSE)
annotatedBSJs |
A data frame with the annotated back-spliced junctions.
This data frame can be generated with |
title |
A character string specifying the title of the plot. |
n |
An integer specyfing the position counts cut-off. If 0 is specified all position are plotted. Deafult value is 0. |
flip |
A logical specifying whether to flip the transcripts. If TRUE all transcripts are flipped and the last exons will correspond to the first ones, the second last exons to the second ones etc. Default value is FALSE. |
A ggplot object.
# Load data frame containing detected back-spliced junctions
data("mergedBSJunctions")
# Load short version of the gencode v19 annotation file
data("gtf")
# Annotate the first 10 back-spliced junctions
annotatedBSJs <- annotateBSJs(mergedBSJunctions[1:10, ], gtf)
# Plot
p <- plotExPosition(annotatedBSJs, title = "", n = 0, flip = FALSE)
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.