plotDistFromCellInfoTable: plot distribution using cell info table

View source: R/plotFunctions.R

plotDistFromCellInfoTableR Documentation

plot distribution using cell info table

Description

plot distribution using cell info table

Usage

plotDistFromCellInfoTable(
  obj,
  out.prefix,
  plot.type = "barplot",
  facet.ncol = 3,
  plot.width = 10,
  plot.height = 5,
  test.method = "fisher.test",
  group.filter = NULL,
  sort.freq = F,
  bar.position = position_dodge2(),
  par.stat = list(),
  min.NTotal = 0,
  cmp.var = "Species",
  group.var = "ClusterID",
  donor.var = "donor",
  verbose = F,
  ...
)

Arguments

obj

object; can be class of Seurat, SingleCellExperiment or data.frame;

out.prefix

character; output prefix.

plot.type

character; (default: "barplot")

facet.ncol

integer; (default: 3)

plot.width

integer; (default: 10)

plot.height

integer; (default: 5)

test.method

character; (default: "fisher.test")

group.filter

character; (default: NULL)

sort.freq

logical; (default: FALSE)

bar.position

; passed to ggbarplot's position (default: position_dodge2())

par.stat

parameter passed to stat_compare_means (default: list() )

min.NTotal

minimum number of cells to calculate frequency (default: 0 )

cmp.var

character; (default: "Species")

group.var

character; (default: "ClusterID")

donor.var

character; (default: "donor")

verbose

logical; (default: FALSE)

...

parameter passed to ggpubr

Details

plot distribution


Japrin/sscVis documentation built on March 5, 2025, 10:23 a.m.