Plots the results of the R-loop-forming sequences (RLFS) analysis. The plot is a metaplot of the Z score distribution around RLFS with the p value from permutation testing annotated. See also analyzeRLFS.
plotRLFSRes(object, plotName = NULL, fft = FALSE, ...)
An RLRanges object with analyzeRLFS already run.
Alternatively, can be the RLFS results object from an RLRanges (from
rlresult(object, "rlfsRes")
).
A Sample name used for plotting.
If blank, the RLRanges sampleName
metadata entry is used (see RLRanges).
If TRUE, the Fourier transform of the Z-score is plotted instead. Default: FALSE.
Additional parameters passed to ggplot2::ggplot.
A ggplot object. See also ggplot2::ggplot.
# Example RLRanges dataset with analyzeRLFS() already run.
rlr <- readRDS(system.file("extdata", "rlrsmall.rds", package = "RLSeq"))
# Plot RLFS res
plotRLFSRes(rlr)
# Plot the Fourier transform instead
plotRLFSRes(rlr, fft = TRUE)