Plot a cluster resolution on tSNE and UMAP.
plot_clusters.RdA single cluster says nothing, and past the color scheme's length the colors
start repeating, so nothing is plotted outside 2:length(color_scheme)
clusters.
Usage
plot_clusters(
x,
resolution,
filename_base,
color_scheme = get_color_scheme("clusters")
)Arguments
- x
Seurat object.
- resolution
Metadata column (or bare resolution value, resolved via
check_identity_column()) to set as the identity before plotting.- filename_base
Path prefix for the two plots (
-tsne/-umapare appended byplot_dr_group()).- color_scheme
(optional) Named vector of cluster colors. Defaults to
get_color_scheme("clusters").