plot_st_celltype_density: Plot spatial density of a single cell type

View source: R/plot.R

plot_st_celltype_densityR Documentation

Plot spatial density of a single cell type

Description

Plot spatial density of a single predicted cell type for transcriptomics data

Usage

plot_st_celltype_density(
  object,
  celltype,
  type,
  if_plot_point = T,
  point_color = NULL,
  point_size = 1,
  color_low = "grey",
  color_mid = NULL,
  color_high = "blue",
  color_midpoint = NULL,
  size = 1
)

Arguments

object

SpaTalk object generated from dec_celltype.

celltype

Name of cell type in the sc_celltype.

type

Select 'contour' or 'raster'.

if_plot_point

Whether to plot points when type is 'contour'.

point_color

Point color.

point_size

Point size. Default is 1.

color_low

Color for the lowest value.

color_mid

Color for the middle value for using scale_color_gradient2. Default is NULL.

color_high

Color for the highest value.

color_midpoint

Value for the middle scale. Default is NULL.

size

Line size when type is 'contour'. Default is 1.


ZJUFanLab/SpaTalk documentation built on Jan. 21, 2025, 3:13 p.m.