plotBinning | R Documentation |
Plot a vertical color bar of the bin
column.
plotBinning(
rse,
target_height = 650,
palette = colorRampPalette(c("#DF536B", "black", "#61D04F"))
)
rse |
a RangedSummarizedExperiment input with a column |
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 |
Display a plot.
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")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.