gg_gene: Plot the spatial figures for genes / cell types

View source: R/Plot.R

gg_geneR Documentation

Plot the spatial figures for genes / cell types

Description

With spatial data, coordinates and given specific feature (gene or cell type), this function plots the map of this feature's spatial distribution.

Usage

gg_gene(feature, spatial_df, coord, title.anno = "Estimated")

Arguments

feature

Specific spatial feature to plot

spatial_df

A data.frame with rows as spatial spots and columns as each features

coord

Spatial coordinates that match the spatial data

title.anno

Annotation of the title

Value

a ggplot2 object


tsinghua-ZTX/SPER documentation built on June 7, 2024, 5:30 a.m.