plotBinning: plotBinning()

View source: R/plotBinning.R

plotBinningR Documentation

plotBinning()

Description

Plot a vertical color bar of the bin column.

Usage

plotBinning(
  rse,
  target_height = 650,
  palette = colorRampPalette(c("#DF536B", "black", "#61D04F"))
)

Arguments

rse

a RangedSummarizedExperiment input with a column bin in rowRanges(rse). Alternatively (for backward compatibility), a GRanges object or any object such as rse$bin exists.

target_height

an integer, the approximate height (in pixels) of the final plot. Used to avoid overplotting artefacts.

palette

A vector of colors, or a function that returns a palette of n colors.

Value

Display a plot.

Examples

data("stackepi")
rse <- stackepi
rse <- addBins(rse, nbins = 3)
plotBinning(rse)

gr2 <- data.frame(bin = rep(c(1,2,3,4), each = 5))
plotBinning(gr2, palette = colorRampPalette(c("blue4", "forestgreen", "coral3", "goldenrod")))


GenEpi-GenPhySE/epistack documentation built on July 27, 2023, 1:09 a.m.