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

View source: R/visualization.R

CARD.visualize.propR Documentation

Visualize the spatial distribution of cell type proportion

Description

Visualize the spatial distribution of cell type proportion

Usage

CARD.visualize.prop(
  proportion,
  spatial_location,
  ct.visualize = ct.visualize,
  colors = c("lightblue", "lightyellow", "red"),
  NumCols,
  pointSize = 3
)

Arguments

proportion

Data frame, cell type proportion estimated by CARD in either original resolution or enhanced resolution.

spatial_location

Data frame, spatial location information.

ct.visualize

Vector of selected cell type 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 c("lightblue","lightyellow","red")

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.