View source: R/neighbor-distances.R
plotNeighborDist | R Documentation |
Plot the distances from regions to their upstream/downstream neighbors or nearest neighbors. Distances can be passed as either raw bp or corrected for the number of regions (log10(obs/exp)), but this has to be specified in the function parameters.
plotNeighborDist(dcvec, correctedDist = FALSE, Nneighbors = FALSE)
dcvec |
A numeric vector or list of vectors containing distances
to upstream/downstream neighboring regions or to nearest neighbors.
Produced by |
correctedDist |
A logical indicating if the plot axis should be adjusted to show distances corrected for the number of regions in a regionset. |
Nneighbors |
A logical indicating whether legend should be adjusted if Nearest neighbors are being plotted. Default legend shows distances to upstream/downstream neighbors. |
A ggplot density object showing the distribution of raw or corrected distances.
numVector = rnorm(400, mean=5, sd=0.1)
d = plotNeighborDist(numVector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.