plotAlluvial: Plot an alluvial plot between clusterings

View source: R/plotAlluvial.R

plotAlluvialR Documentation

Plot an alluvial plot between clusterings

Description

Plot an alluvial plot between clusterings

Usage

plotAlluvial(listMemberships, plotOptions = list())

Arguments

listMemberships

: a list vectors containing the memberships

plotOptions

: a list containing the options for Alluvial plots

Details

The list of parameters plotOptions provides the following options

  • "curvy"numeric, controls the curvature of the alluvial. Default value = 0.3

  • "alphanumeric, vector of transparency of the stripes. Default value = 0.8

  • "gap.width"numeric, relative width of inter-category gaps. Default value = 0.1

  • "col"vector of colors of the stripes. Default value = "darkolivegreen3"

  • "border"vector of border colors for the stripes. Default is white

Value

display the alluvial plot, returns the plotOptions as a list

Examples

listMemberships <- list(C1 = rep(c('A','B','C'),each=10),C2 = rep(c(1,2,4),10))
plotAlluvial(listMemberships)

sbm documentation built on Jan. 9, 2023, 5:12 p.m.