plot_st_gene | R Documentation |
Point plot with spatial distribution of a gene for transcriptomics data
plot_st_gene(
object,
gene,
size = 1,
color_low = "grey",
color_mid = NULL,
color_high = "blue",
color_midpoint = NULL,
if_use_newmeta = T,
celltype = NULL,
if_plot_others = T
)
object |
SpaTalk object generated from |
gene |
Symbol of gene, e.g., 'AKT1'. |
size |
Point size. Default is |
color_low |
Color for the lowest value. |
color_mid |
Color for the middle value for using |
color_high |
Color for the highest value. |
color_midpoint |
Value for the middle scale. Default is |
if_use_newmeta |
Whether to use newmeta o plot the spatial distribution of gene after |
celltype |
gene in which celltype to plot. Default is |
if_plot_others |
Whether to plot other cells when to use defined |
Please set if_use_newmeta
as FALSE
to plot the spatial distribution of gene before dec_celltype
for spot-based data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.