plotDR | R Documentation |
Dimension reduction plot colored by expression values or column metadata.
To avoid plotting too many dots as a vector graphic, geom_point_rast
from ggrastr
is used to internally replace the geom_point
layer.
plotDR( sce, sce_bg = NULL, dimred = "UMAP", colour_by = "condition", text_by = NULL, facet_by = NULL, point_shape = 19, point_size = 0.5, point_alpha = 1, rasterize = T, ... )
sce |
A |
sce_bg |
An optional |
dimred |
A character string specifying which dimension reduction to use.
Should be one of |
colour_by |
A character string corresponding to a |
text_by |
A character string corresponding to a |
facet_by |
A character string corresponding to a |
point_shape, point_size, point_alpha |
Parameters for the plot. Note: setting the shape to "." allows users to nicely plot a large number of dots. |
rasterize |
Logical. Whether the plot needs to be rasterized using ggrastr. |
... |
Additional arguments passed to |
A ggplot
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.