plotFeatureDist: Plots a histogram of distances to genomic features

View source: R/feature-plots.R

plotFeatureDistR Documentation

Plots a histogram of distances to genomic features

Description

Given the results from featureDistribution, plots a histogram of distances surrounding the features of interest

Usage

plotFeatureDist(
  dists,
  bgdists = NULL,
  featureName = "features",
  numbers = FALSE,
  nbins = 50,
  size = 1e+05,
  infBins = FALSE,
  tile = FALSE,
  labelOrder = "default"
)

Arguments

dists

Results from featureDistribution

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).

Value

A ggplot2 plot object

Examples

TSSdist = calcFeatureDistRefTSS(vistaEnhancers, "hg19")
f = plotFeatureDist(TSSdist, featureName="TSS")

databio/GenomicDistributions documentation built on Nov. 5, 2023, 5:30 p.m.