View source: R/rename_clusters.R
rename_clusters | R Documentation |
From an object fit, clusters (all or some) can be renamed. This changes the names inside the VIBER object, affecting plots and all other outputs. This function can be used after clusters have been given some interpretation, e.g., cluster "C1" is the "Clonal" cluster for instance.
rename_clusters(x, new_labels)
x |
A VIBER fit object. |
new_labels |
A named vector representing a new names map. For instance
|
A VIBER fit object with renamed clusters.
data(mvbmm_example) x = variational_fit(mvbmm_example$successes, mvbmm_example$trials) print(x) x_renamed = rename_clusters(x, c(`C1`=`Clonal`, `C2` = `Subclonal`)) print(x_renamed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.