Description Usage Arguments Value Examples
Creates a scatter plot of two features (typically feature expression), across a set of single cells. Cells are colored by their identity class. Pearson correlation between the two features is displayed above the plot.
1 2 3 |
object |
Seurat object |
feature1 |
First feature to plot. Typically feature expression but can also be metrics, PC scores, etc. - anything that can be retreived with FetchData |
feature2 |
Second feature to plot. |
cells |
Cells to include on the scatter plot. |
group.by |
Name of one or more metadata columns to group (color) cells by (for example, orig.ident); pass 'ident' to group by identity class |
cols |
Colors to use for identity class plotting. |
pt.size |
Size of the points on the plot |
shape.by |
Ignored for now |
span |
Spline span in loess function call, if |
smooth |
Smooth the graph (similar to smoothScatter) |
slot |
Slot to pull data from, should be one of 'counts', 'data', or 'scale.data' |
... |
Ignored for now |
A ggplot object
1 | FeatureScatter(object = pbmc_small, feature1 = 'CD9', feature2 = 'CD3E')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.