draw_alluvial_plot: draw_alluvial_plot

Description Usage Arguments Value Examples

View source: R/coregulstions.R

Description

'draw_alluvial_plot' draw a alluvial plot

Usage

1
2
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

1
2
3
4
5
6
7
8
# 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)

XINA documentation built on Nov. 8, 2020, 5:32 p.m.