getSankey {scmap} | R Documentation

## Plot Sankey diagram comparing two clusterings

### 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

    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

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

[Package scmap version 1.9.3 Index]