draw_alluvial_plot {XINA} | R Documentation |
'draw_alluvial_plot' draw a alluvial plot
draw_alluvial_plot(clustering_result, selected_conditions, count_table, alluvia_colors = NULL, cex = 0.7, alpha = 0.3)
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. |
An alluvial plot displaying comigrations and the data frame containing the input count_table with colors.
# 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)