plotRLRegionOverlap | R Documentation |
Convenience function for plotting the overlap between RLRanges and R-loop regions (RL regions) as calculated by rlRegionTest.
plotRLRegionOverlap(object, returnData = FALSE, rlregions_table = NULL, ...)
object |
An RLRanges object with rlRegionTest already run. |
returnData |
If TRUE, plot data is returned instead of plotting. Default: FALSE |
rlregions_table |
The table of RLRegions to overlap sample ranges with. Obtained from RLHUb using RLHub::rlregions_meta. Loaded from RLHub if not supplied. Default: NULL. |
... |
Additional arguments passed to VennDiagram::venn.diagram |
A ggplot2::ggplot object containing the venn diagram. Built using ggplotify::as.ggplot.
# Example dataset with rlRegionTest() already run. rlr <- readRDS(system.file("extdata", "rlrsmall.rds", package = "RLSeq")) # Plot RL-Region overlap plotRLRegionOverlap(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.