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".

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