CARD.visualize.prop.2CT: Visualize the spatial distribution of two cell type...

View source: R/visualization.R

CARD.visualize.prop.2CTR Documentation

Visualize the spatial distribution of two cell type proportions on the same plot

Description

Visualize the spatial distribution of two cell type proportions on the same plot

Usage

CARD.visualize.prop.2CT(
  proportion,
  spatial_location,
  ct2.visualize = ct2.visualize,
  colors = NULL
)

Arguments

proportion

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

spatial_location

Data frame, spatial location information.

ct2.visualize

Vector of selected two cell type names that are interested to visualize, here we only focus on two cell types

colors

list of color names that you want to use for each cell type, if NULL, we will use the default color scale list list(c("lightblue","lightyellow","red"),c("lightblue","lightyellow","black")

Value

Returns a ggplot2 figure.


YingMa0107/CARD documentation built on Feb. 14, 2024, 12:23 p.m.