Plots result from genomicDistribution calculation

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

Arguments

genomeAggregate

The output from the genomicDistribution function

binCount

Number of bins (should match the call to genomicDistribution)

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)