Description Usage Arguments Value
This function plots data for individual clusters and landmarks and has different behaviours depending
on whether the clusters represent individual or multiple samples (i.e. wether they were generated using
scfeatures::cluster_fcs_files
or scfeatures::cluster_fcs_files_groups
)
1 2 3 | plot_clusters(G, clusters, col.names, working.dir, plot.type,
pool.clusters = FALSE, pool.samples = FALSE,
samples.to.plot = NULL, facet.by = "Sample")
|
G |
An |
clusters |
A numeric vector representing the indices of the vertices of |
col.names |
A character vector of variables to plot (these must correspond to the columns in the original clusters data) |
working.dir |
The working directory. Must contain two subdirectories named |
plot.type |
Either |
pool.clusters |
Whether to pool the clusters data. If this is |
pool.samples |
Whether to pool data from different samples. If this is |
samples.to.plot |
The samples to be plotted. This option is only used if |
facet.by |
In cases where multiple samples are plotted, whether the plots should be faceted by |
Returns a ggplot2
plot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.