View source: R/nice_spatial_dim_plot.R
nice_spatial_dim_plot | R Documentation |
nicer looking version of the Seurat function SpatialDimPlot.
nice_spatial_dim_plot(
seurat_obj,
group_by = NULL,
im_alpha = 0,
pt.size = 1.4,
stroke = 0,
cols = NULL,
label = F,
show_legend = T,
crop = T
)
seurat_obj |
Seurat object. |
group_by |
what to colour the points by, usually a column in the Seurat object metadata. |
im_alpha |
set to 1 to plot the tissue image, 0 otherwise. |
pt.size |
size of plotted points on spatial array. |
stroke |
linewidth to outline plotted points in black (default = no outline). |
cols |
optional: vector of colours for each plotted group. |
label |
if T, will label groups with text on plot. |
show_legend |
if T, will include the legend but won't label points w/text on plot. |
crop |
Crop tissue array to focus on region with spots? |
SpatialPlot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.