Scatterplot of a Seurat object based on dimension reduction.
Usage
scatterPlot(
  seu,
  reduction,
  colour.by,
  colvec = NULL,
  title = NULL,
  sort.by.numbers = TRUE,
  viridis_option = "B"
)Arguments
- seu
- Seurat S4 object after the step of `getIDER`. Required. 
- reduction
- Character. The dimension reduction used to plot. Common options: "pca", "tsne", "umap". The availability of dimension reduction can be checked by `Reductions(seu)`. 
- colour.by
- Character. One of the column names of `seu@meta.data`. Can be either discreet or continuous variables. 
- colvec
- A vector of Hex colour codes. If no value is given (default), a vector of 74 colours will be used. 
- title
- Character. Title of the figure. 
- sort.by.numbers
- Boolean. Whether to sort the groups by the number of cells.(Default: True) 
- viridis_option
- viridis_option. (Default: B) 
