plot_each_cluster: Obtain each cluster label visualized on locations.

plot_each_clusterR Documentation

Obtain each cluster label visualized on locations.

Description

This function visualizes each cluster label on locations.

Usage

plot_each_cluster(
  loc_x,
  loc_y,
  clusterlabel_in,
  pointsize = 3,
  text_size = 15,
  title_in,
  color_in
)

Arguments

loc_x:

A vector of x coordiantes.

loc_y:

A vector of y coordinates.

clusterlabel_in:

A vector of integers, the cluster labels for each cell.

pointsize:

An integer, the point size of each cell.

textsize:

An integer, the text size in the legend.

title_in:

A character string, the title you want to display at the top of the figure.

color_in:

A vector of colors for each cluster.

Value

A list of ggplot objects.


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