plot_factor_value: Visualize PCs on their locations.

View source: R/SpatialPCA_utilties.R

plot_factor_valueR Documentation

Visualize PCs on their locations.

Description

This function visualizes the low dimensional component values.

Usage

plot_factor_value(location, PCs, textmethod, pointsize = 2, textsize = 15)

Arguments

location

A n cell by k dimension of location matrix. n is cell number, k=2 if the spots are on 2D space.

PCs

A d by n matrix of low dimensional components.

textmethod

A text string of the name of method used to extract latent factors, e.g. "SpatialPCA" or "PCA". It will be shown as the title of the figures.

pointsize

The point size of each location for visualization.

textsize

The text size in the figure legend.

Value

A list of ggplot objects for factor value plots.


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