netVisual_barplot: Visualization of (differential) number of interactions

View source: R/visualization.R

netVisual_barplotR Documentation

Visualization of (differential) number of interactions

Description

Visualization of (differential) number of interactions

Usage

netVisual_barplot(
  object,
  comparison = c(1, 2),
  measure = c("count", "weight"),
  sources.use = NULL,
  targets.use = NULL,
  invert.source = FALSE,
  invert.target = FALSE,
  signaling = NULL,
  slot.name = c("netP", "net"),
  color.use = NULL,
  title.name = NULL,
  x.lab.rot = FALSE,
  ...
)

Arguments

object

A merged CellChat object or a single CellChat object

comparison

a numerical vector giving the datasets for comparison in object.list; e.g., comparison = c(1,2)

measure

"count" or "weight". "count": comparing the number of interactions; "weight": comparing the total interaction weights (strength)

sources.use

a vector giving the index or the name of source cell groups

targets.use

a vector giving the index or the name of target cell groups.

invert.source, invert.target

retain the complementary set

signaling

a character vector giving the name of signaling networks in a single CellChat object

slot.name

the slot name of object. Set is to be "netP" if input signaling is a pathway name; Set is to be "net" if input signaling is a ligand-receptor pair

color.use

the character vector defining the color of each cell group

title.name

the name of the title

x.lab.rot

do rotation for the x-ticklabels

...

Parameters passing to 'barplot_internal'

Value

an object of ggplot


sqjin/CellChat documentation built on Nov. 10, 2023, 4:29 a.m.