Returns a DimPlot colored based on whether the cells fall in clusters to the left or to the right of a node split in the cluster tree.
ColorDimSplit(object, node, left.color = "red", right.color = "blue",
other.color = "grey50", ...)
Seurat object
Node in cluster tree on which to base the split
Color for the left side of the split
Color for the right side of the split
Color for all other cells
Arguments passed on to DimPlot
Dimensions to plot, must be a two-length numeric vector specifying x- and y-dimensions
Vector of cells to plot (default is all cells)
Vector of colors, each color corresponds to an identity class. This may also be a single character
or numeric value corresponding to a palette as specified by brewer.pal.info
.
By default, ggplot2 assigns colors
Adjust point size for plotting
Which dimensionality reduction to use. If not specified, first searches for umap, then tsne, then pca
Name of one or more metadata columns to group (color) cells by (for example, orig.ident); pass 'ident' to group by identity class
Name of a metadata column to split plot by;
see FetchData
for more details
If NULL, all points are circles (default). You can specify any cell attribute (that can be pulled with FetchData) allowing for both different colors and different shapes on cells
Specify the order of plotting for the idents. This can be useful for crowded plots if points of interest are being buried. Provide either a full list of valid idents or a subset to be plotted last (on top)
Whether to label the clusters
Sets size of labels
Repel labels
A list of character or numeric vectors of cells to
highlight. If only one group of cells desired, can simply
pass a vector instead of a list. If set, colors selected cells to the color(s)
in cols.highlight
and other cells black (white if dark.theme = TRUE);
will also resize to the size(s) passed to sizes.highlight
A vector of colors to highlight the cells as; will repeat to the length groups in cells.highlight
Size of highlighted cells; will repeat to the length groups in cells.highlight
Color value for NA points when using custom scale
Combine plots into a single gg object; note that if TRUE; themeing will not work when plotting multiple features
Number of columns for display when combining plots
Returns a DimPlot
# NOT RUN {
pbmc_small
pbmc_small <- BuildClusterTree(object = pbmc_small, verbose = FALSE)
PlotClusterTree(pbmc_small)
ColorDimSplit(pbmc_small, node = 5)
# }
Run the code above in your browser using DataLab