plot_RGB_UMAP: Visualize RGB plot from UMAP.

View source: R/SpatialPCA_utilties.R

plot_RGB_UMAPR Documentation

Visualize RGB plot from UMAP.

Description

We summarized the inferred low dimensional components into three UMAP. components and visualized the three resulting components with red/green/blue (RGB) colors in the RGB plot.

Usage

plot_RGB_UMAP(location, latent_dat, pointsize = 2, textsize = 15)

Arguments

location

A n by k location matrix. n is spot number.

latent_dat

A d by n matrix of low dimensional components.

pointsize

The point size of each spot.

textsize

The text size in the legend.

Value

A list.

RGB

A data frame with five columns: x coordinate, y coordinate, R, G, and B color index

figure

A ggplot object for RGB plot from UMAP.


shangll123/SpatialPCA documentation built on April 17, 2024, 3:15 a.m.