Description Usage Arguments Value See Also Examples
View source: R/visualization.R
Select points on a scatterplot and get information about them
1 2 3  | CellSelector(plot, object = NULL, ident = "SelectedCells", ...)
FeatureLocator(plot, ...)
 | 
plot | 
 A ggplot2 plot  | 
object | 
 An optional Seurat object; if passes, will return an object
with the identities of selected cells set to   | 
ident | 
 An optional new identity class to assign the selected cells  | 
... | 
 Ignored  | 
If object is NULL, the names of the points selected;
otherwise, a Seurat object with the selected cells identity classes set to
ident
1 2 3 4 5 6 7 8 9 10  | ## Not run: 
data("pbmc_small")
plot <- DimPlot(object = pbmc_small)
# Follow instructions in the terminal to select points
cells.located <- CellSelector(plot = plot)
cells.located
# Automatically set the identity class of selected cells and return a new Seurat object
pbmc_small <- CellSelector(plot = plot, object = pbmc_small, ident = 'SelectedCells')
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.