dim_plot_tailored | R Documentation |
This function generates the same plot as dim_plot
,
although it focuses on a single group and generates slightly better
looking plot.
dim_plot_tailored( seu, group.by, reduction = "umap", legend.position = "right", col_pal = NULL, label = FALSE, label.size = 7, pt.size = 1.4, pt.shape = 21, pt.stroke = 0.05, pt.alpha = 1, dims_plot = c(1, 2), ... )
seu |
Seurat object |
group.by |
Name of metadata column to group (color) cells by (required). |
reduction |
Dimensionality reduction to use. |
legend.position |
Position of legend, default "right" (set to "none" for clean plot). |
col_pal |
Continuous colour palette to use, default "RdYlBu". |
label |
Whether to label the groups in 'reduction' space. |
label.size |
Sets size of labels. |
pt.size |
Adjust point size for plotting. |
pt.shape |
Adjust point shape for plotting. |
pt.stroke |
Stroke value for each point. |
pt.alpha |
Adjust alpha value for each point. |
dims_plot |
Dimensions to plot, must be a two-length numeric vector specifying x- and y-dimensions. |
... |
Additional parameters passed to ggplot2::geom_point. |
A ggplot2 object.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.