nice_spatial_dim_plot_old: nice_spatial_dim_plot_old

View source: R/nice_spatial_dim_plot_old.R

nice_spatial_dim_plot_oldR Documentation

nice_spatial_dim_plot_old

Description

nicer looking version of the Seurat function SpatialDimPlot.

Usage

nice_spatial_dim_plot_old(
  seurat_obj,
  group.by,
  im_alpha = 0,
  pt.size = 1.4,
  stroke = 0,
  cols = NULL,
  label = F,
  show_legend = T
)

Arguments

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.

Value

SpatialPlot.


mvhunter1/mvhfunctions documentation built on May 31, 2024, 3:36 p.m.