Plots result from genomicDistribution calculation

plotChromBins(
  genomeAggregate,
  plotTitle = "Distribution over chromosomes",
  ylim = "max"
)

Arguments

genomeAggregate

The output from the genomicDistribution function

plotTitle

Title for plot.

ylim

Limit of y-axes. Default "max" sets limit to N of biggest bin.

Value

A ggplot object showing the distribution of the query regions over bins of the reference genome.

Examples

agg = data.frame("regionID"=1:5, "chr"=rep(c("chr1"), 5), 
                "withinGroupID"=1:5, "N"=c(1,3,5,7,9))  
ChromBins = plotChromBins(agg)