View source: R/SignatureScatterPlot.R
SignatureScatterPlot | R Documentation |
Plots various signature scores (or features) against another signature score, in an interactive plot, in order to help define gates. In the scatter plot, each point represents a cell in the Seurat object. The points can be colored either by identity or according to a feature. Generalizes FeatureScatter() in that several scatter plots can be done at once, features and signatures can be pulled from several assays as well as from the metadata simultaneously, coloring can be done according to a feature instead of Idents(), and hovering can be used to get coordinates.
SignatureScatterPlot(
object,
sign1,
sign2,
pt.size = 0.8,
n.rows = NA,
color.by = Idents(object)
)
object |
Seurat object. |
sign1 |
character(1). The name of the signature to plot on the x axis. |
sign2 |
character(n). The name of the signature(s) to plot on the y axis. |
pt.size |
numeric(1).The point size. Default: 0.8. |
n.rows |
numeric(1).The number of rows in the plot grid. NA for automatic smart choice. Default: NA. |
color.by |
character(n). The name of a metadata or feature column or a vector of idents or values to be used for point colors. |
A plotly grid of plots
SignatureNames <- names(MySignatureList)
SignatureScatterPlot(MySeuratObject,SignatureNames[1],SignatureNames[2])
SignatureScatterPlot(MySeuratObject,SignatureNames[1],SignatureNames[2:length(SignatureNames)])
SignatureScatterPlot(MySeuratObject,SignatureNames[1],SignatureNames[2:length(SignatureNames)],pt.size=1.2,n.rows=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.