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

View source: R/visualization.R

CARD.visualize.pieR Documentation

Visualize the spatial distribution of cell type proportion in a geom scatterpie plot

Description

Visualize the spatial distribution of cell type proportion in a geom scatterpie plot

Usage

CARD.visualize.pie(
  proportion,
  spatial_location,
  colors = NULL,
  radius = NULL,
  seed = 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.

colors

Vector of color names that you want to use, if NULL, we will use the color palette "Spectral" from RColorBrewer package.

radius

Numeric value about the radius of each pie chart, if NULL, we will calculate it inside the function.

seed

Seed number about generating the colors if users do not provide the colors, if NULL, we will generate it inside the function

Value

Returns a ggplot2 figure.


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