ClusterIdentityChordPlot: Plot ChordDiagram of cell identity changes between two runs...

Description Usage Arguments Value

View source: R/clusterviz.R

Description

Plot ChordDiagram of cell identity changes between two runs of clusters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ClusterIdentityChordPlot(
  ident1,
  ident2,
  clusters_to_show_ident1 = NULL,
  big.gap = 10,
  transparency = 0.5,
  grid.col = NULL,
  link.sort = TRUE,
  link.decreasing = TRUE,
  directional = -1
)

Arguments

ident1

a named factor vector. names are the cell names, the values are the cluster id.

ident2

a named factor vector. names are the cell names, the values are the cluster id.

clusters_to_show_ident1

A character vector of cluster ids to show for ident1. default is NULL, all clusters will be shown.

big.gap

Gap between sectors of two cluster runs.

transparency

Transparency of link colors, 0 means no transparency and 1 means full transparency. see chordDiagramFromMatrix

grid.col

Grid colors which correspond to matrix rows/columns (or sectors). The length of the vector should be either 1 or length(union(rownames(mat), colnames(mat))). It's preferred that grid.col is a named vector of which names correspond to sectors. If it is not a named vector, the order of grid.col corresponds to order of sectors. see chordDiagramFromMatrix

link.sort

whether sort links on every sector based on the width of the links on it. If it is set to "overall", all links are sorted regardless whether they are from rows or columns. see chordDiagramFromMatrix

link.decreasing

for link.sort

directional

Whether links have directions. 1 means the direction is from the first column in df to the second column, -1 is the reverse, 0 is no direction, and 2 for two directional. see chordDiagramFromMatrix

Value

A data frame which contains positions of links. see chordDiagramFromMatrix


crazyhottommy/scclusteval documentation built on Aug. 5, 2021, 3:20 p.m.