nice_spatial_dim_plot: nice_spatial_dim_plot

Description Usage Arguments Value

View source: R/nice_spatial_dim_plot.R

Description

nicer looking version of the Seurat function SpatialDimPlot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
nice_spatial_dim_plot(
  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/mvhspatialplots documentation built on April 24, 2021, 10:52 a.m.