CARD.visualize.gene: Visualize the spatial distribution of cell type proportion

View source: R/visualization.R

CARD.visualize.geneR Documentation

Visualize the spatial distribution of cell type proportion

Description

Visualize the spatial distribution of cell type proportion

Usage

CARD.visualize.gene(
  spatial_expression,
  spatial_location,
  gene.visualize,
  colors = colors,
  NumCols
)

Arguments

spatial_expression

Data frame, spatial gene expression in either original resolution or enhanced resolution.

spatial_location

Data frame, spatial location information.

gene.visualize

Vector of selected gene names that are interested to visualize

colors

Vector of color names that you want to use, if NULL, we will use the default color scale in virdis palette

NumCols

Numeric, number of columns in the figure panel, it depends on the number of cell types you want to visualize.

Value

Returns a ggplot2 figure.


YingMa1993/CARD documentation built on Feb. 14, 2024, 12:24 p.m.