plot_cells: plot_cells

View source: R/utils.R

plot_cellsR Documentation

plot_cells

Description

Produces a scatter plot of the cells in the tissue. Cells are coloured categorically by Cell.Type column. Cell categories not specified will be coloured "lightgrey" and labled "Unspecified".

Usage

plot_cells(
  spe_object,
  categories_of_interest = NULL,
  colour_vector = NULL,
  feature_colname = "Cell.Type"
)

Arguments

spe_object

SpatialExperiment object or a data.frame that has cell locations and cell type info.

categories_of_interest

String Vector of cell categories to be coloured.

colour_vector

String Vector specifying the colours of each cell type.

feature_colname

String specifying the column the cell categories belong to.

Value

A plot is returned


TrigosTeam/spaSim documentation built on May 25, 2023, 4:20 p.m.