getSankey: Plot Sankey diagram comparing two clusterings

Description Usage Arguments Value Examples

View source: R/Utils.R

Description

Sometimes it is useful to see how the clusters in two different clustering solutions correspond to each other. Sankey diagram is a good way to visualize them. This function takes as input two clustering solutions and visualizes them using a Sankey diagram. The order of the reference clusters is defined by their labels in increasing order.

Usage

1
2
getSankey(reference, clusters, plot_width = 400, plot_height = 600,
  colors = NULL)

Arguments

reference

reference clustering labels

clusters

clustering labels under investigations

plot_width

width of the output plot in pixels

plot_height

height of the output plot in pixels

colors

colors of the links between two clusterings. If defined please note that each cluster in the reference clustering has to have its own color. This should be a normal text vector, e.g. c('#FF0000', '#FFA500', '#008000')

Value

an object returned by 'gvisSankey'

Examples

1
plot(getSankey(ann[ , 1], ann[ , 1]))

hemberg-lab/scmap documentation built on Nov. 29, 2020, 1:06 p.m.