Skip to contents

A drawing function that outputs a CellTopic spatial distribution plot and corresponding celltype barpolt.

Usage

CellTopic_plot(
  st_obj,
  celltype_topic,
  celltopic = colnames(celltype_topic),
  highlight.circle = NULL,
  cols.circle = "black",
  cols.highlight = c("#DE2D26", "grey50"),
  cols.celltype = NULL,
  plot.size = 7,
  nrow = NULL,
  ncol = NULL,
  ...
)

Arguments

st_obj

A seurat object with CellTopic meta data.

celltype_topic

A data frame, row is celltype and col is CellTopic.

celltopic

A character of which CellTopic to plot.

highlight.circle

A character of which meta.data to high light. Default is NULL.

cols.circle

A character of circle's color. Default is black.

cols.highlight

A vector with two character of highlight spots' colors.

cols.celltype

A vector with character of celltypes' colors. Default is NULL.

plot.size

A numeric of plot's size. Default is 7.

nrow

A numeric of rows in the plot grid.

ncol

A numeric of cols in the plot grid.

...

Arguments passed to other methods.

Value

A polt with SpatialDimPlot and celltype barpolt.