plotAlluvial | R Documentation |
Produces an alluvial plot from character elements of the metadata
plotAlluvial(scCNA, label, label_colors = NULL, min_cells = NULL)
scCNA |
The CopyKit object. |
label |
A string with two or more elements from |
label_colors |
An optional named vector with the colors of each element from label. |
min_cells |
An optional numeric to filter stratum that do not reach the minimum amount of cells. |
A ggplot object containing an alluvial plot from ggalluvial
copykit_obj <- copykit_example_filtered()
copykit_obj <- findClusters(copykit_obj)
colData(copykit_obj)$section <- stringr::str_extract(
colData(copykit_obj)$sample,
"(L[0-9]+L[0-9]+|L[0-9]+)"
)
plotAlluvial(copykit_obj, label = c("subclones", "section"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.