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