plotFeatureDist {GenomicDistributions} | R Documentation |
Given the results from featureDistribution
, plots a histogram of
distances surrounding the features of interest
plotFeatureDist( dists, bgdists = NULL, featureName = "features", numbers = FALSE, nbins = 50, size = 1e+05, infBins = FALSE, tile = FALSE )
dists |
Results from |
bgdists |
Background distances. If provided, will plot a background distribution of expected distances |
featureName |
Character vector for plot labels (optional). |
numbers |
a logical indicating whether the raw numbers should be displayed, rather than percentages (optional). |
nbins |
Number of bins on each side of the center point. |
size |
Number of bases to include in plot on each side of the center point. |
infBins |
Include catch-all bins on the sides? |
tile |
Turn on a tile mode, which plots a tiled figure instead of a histogram. |
A ggplot2 plot object
TSSdist = calcFeatureDistRefTSS(vistaEnhancers, "hg19") f = plotFeatureDist(TSSdist, featureName="TSS")