draw_alluvial_plot {XINA} | R Documentation

## draw_alluvial_plot

### Description

'draw_alluvial_plot' draw a alluvial plot

### Usage

    draw_alluvial_plot(clustering_result, selected_conditions, count_table,
      alluvia_colors = NULL, cex = 0.7, alpha = 0.3)

### Arguments

`clustering_result` | A list containing XINA clustering results. See xina_clustering.
`selected_conditions` | A vector of condition names used in XINA clustering results. The number of selected conditions should be at least two.
`count_table` | A data frame generated by using count.
`alluvia_colors` | A vector containing the user-defined colors for each alluvium.
`cex` | Size of cluster number on block axis. Default if 0.7. See alluvial.
`alpha` | Transparency of alluvia colors. Default is 0.3. See alluvial.

### Value

An alluvial plot displaying comigrations and the data frame containing the input count_table with colors.

### Examples

    # load XINA example data
    data(xina_example)

    # get a vector of experimental conditions analyzed in the clustering results
    classes <- as.vector(example_clusters$condition)

    comigrations_size_over5 <- alluvial_enriched(example_clusters, classes, comigration_size=5)
    draw_alluvial_plot(example_clusters, classes, comigrations_size_over5)

[Package XINA version 1.6.0 Index]