plotExPosition {circRNAprofiler} | R Documentation

## Plot back-spliced exon positions

### Description

The function plotExPosition() generates a bar chart showing the position of the back-spliced exons within the transcript.

### Usage

    plotExPosition(annotatedBSJs, title = "", n = 0, flip = FALSE)

### Arguments

`annotatedBSJs` | A data frame with the annotated back-spliced junctions. This data frame can be generated with `annotateBSJs`.
`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.

### Value

A ggplot object.

### Examples

    # 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

[Package circRNAprofiler version 1.1.0 Index]