View source: R/Seurat.Utils.Visualization.R
umapHiLightSel | R Documentation |
Generates a UMAP plot from a Seurat object with specified clusters highlighted. It saves the resulting UMAP plot directly to the current working directory.
umapHiLightSel(
obj = combined.obj,
COI = c("0", "2", "4"),
ident = GetClusteringRuns()[1],
h = 7,
w = 5,
show_plot = TRUE,
...
)
obj |
Seurat object to be visualized; Default: |
COI |
Vector of cluster IDs to highlight on the UMAP plot;
Default: |
ident |
Name of the metadata column containing cluster IDs;
Default: |
h |
Height of the plot; Default: |
w |
Width of the plot; Default: |
show_plot |
Logical; if |
... |
Additional arguments to be passed to the |
Saves a UMAP plot highlighting specified clusters to the current working directory. The function itself does not return an object within R.
DimPlot
## Not run:
if (interactive()) {
# GetClusteringRuns()[1] "integrated_snn_res.0.1"
umapHiLightSel(obj = combined.obj, COI = c("0", "1"), ident = GetClusteringRuns()[1])
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.