| plotTxFeatureOverlap | R Documentation |
Plots the results of txFeatureOverlap alongside the average from public R-loop datasets. This allows comparison of user-supplied samples with data that is expected to be simialr.
plotTxFeatureOverlap(object, mode = "auto", returnData = FALSE)
object |
An RLRanges object with txFeatureOverlap already run. |
mode |
A |
returnData |
If TRUE, plot data is returned instead of plotting. Default: FALSE |
The mode parameter specifies the R-loop modality to compare the
user-supplied sample against in the plot. The default, "auto"
specifies that the mode from the supplied RLRanges object will
be used. Only one mode can be specified. For a list of applicable modes,
see auxdata$available_modes.
The plot is a stacked bar chart showing the proportion of peaks overlapping
transcript features for the supplied RLRanges object. Additionally, the
average of the txFeatureOverlap analysis for all samples within the
specified modes are also shown as a background comparison.
This style of analysis enables a user to see the transcript features overlapping their peaks and compare those results to the average within relevant public datasets.
A ggplot2::ggplot object or a tbl if returnData is TRUE.
rlr <- readRDS(system.file("extdata", "rlrsmall.rds", package = "RLSeq"))
# Plot RL-Region overlap
plotTxFeatureOverlap(rlr)
# Return data only
plotRLRegionOverlap(rlr, returnData = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.