Show smooth plots of genes as a function of buffer distance at different angles.
Usage
Expansion_gene_plot(
st_obj,
CellTopic,
gene,
meta.col = "CellTopic",
angle = 90,
parts = 1,
plot = TRUE,
cols = NULL
)
Arguments
- st_obj
A Seurat object.
- CellTopic
A character of which CellTopic to be chosen.
- gene
A vector contains one or more genes for display
- meta.col
A character of which meta.data to be chosen. Default is
"CellTopic"
.- angle
A numeric indicates the starting angle. Default is
90
, which means directly above.- parts
A number indicates that the angle needs to be divided into several equal parts.
- plot
Logical indicating if to display the result plot or just data for plotting. Default is
TRUE
.- cols
A vector of colors used for plot.