BASiCS_PlotVarianceDecomp: Plot variance decomposition results.

View source: R/BASiCS_PlotVarianceDecomp.R

BASiCS_PlotVarianceDecompR Documentation

Plot variance decomposition results.

Description

Plot variance decomposition results.

Usage

BASiCS_PlotVarianceDecomp(
  Decomp,
  beside = FALSE,
  nBatch = ((ncol(Decomp) - 2)/3) - 1,
  main = "Overall variance decomposition",
  xlabs = if (nBatch == 1) "Overall" else c("Overall", paste("Batch", seq_len(nBatch))),
  ylab = "% of variance"
)

Arguments

Decomp

The output of BASiCS_VarianceDecomp.

beside

If TRUE, bars are placed beside each other. If FALSE, bars are stacked.

nBatch

Number of batches.

main

Plot title.

xlabs

x-axis labels. Defaults to "Batch 1", "Batch 2", etc.

ylab

y axis label.

Value

A ggplot object.


catavallejos/BASiCS documentation built on March 27, 2024, 12:49 a.m.