Description Usage Arguments Value Examples
View source: R/clustering_plots.R
computes condition composition of the XINA clustering results and draws pie-charts.
1 2 | plot_condition_compositions(clustering_result, bullseye = FALSE,
ggplot_theme = NULL)
|
clustering_result |
A list containing XINA clustering results. See xina_clustering |
bullseye |
If it is TRUE, draw bullseye plot instead of the pie-chart. Default is FALSE |
ggplot_theme |
This is ggplot theme to modify condition composition pie-chart and bulles eye plots. |
A condition composition plot and a data frame containing condition compositions of the clusters
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # load XINA example data
data(xina_example)
# Plot condition composition pie-chart with default option
plot_condition_compositions(example_clusters)
# Make a new color code for conditions
condition_colors <- c("tomato","steelblue1","gold")
names(condition_colors) <- example_clusters$condition
example_clusters$color_for_condition <- condition_colors
# Draw condition composition pie-chart with the new color code
plot_condition_compositions(example_clusters)
# Draw condition composition bullseye plot
plot_condition_compositions(example_clusters, bullseye = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.