View source: R/feature-plots.R
plotFeatureDist | 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,
labelOrder = "default"
)
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. |
labelOrder |
– 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.