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,
labelOrder = "default"
)
Results from featureDistribution
Background distances. If provided, will plot a background distribution of expected distances
Character vector for plot labels (optional).
a logical indicating whether the raw numbers should be displayed, rather than percentages (optional).
Number of bins on each side of the center point.
Number of bases to include in plot on each side of the center point.
Include catch-all bins on the sides?
Turn on a tile mode, which plots a tiled figure instead of a histogram.
-- Enter "default" to order by order of user input (default); Enter "center" to order by value in tile in the closest proximity to the center of features (in case TSS is used - center is TSS) (center).
A ggplot2 plot object
TSSdist = calcFeatureDistRefTSS(vistaEnhancers, "hg19")
f = plotFeatureDist(TSSdist, featureName="TSS")
#> Scale for x is already present.
#> Adding another scale for x, which will replace the existing scale.