ClusterPlot: ClusterPlot.

Description Usage Arguments Details Value Examples

View source: R/SC-MEB.R

Description

The function ClusterPlot is used to Visualize spatial clusters.

Usage

1
ClusterPlot(out, pos, size = 5, shape = 15)

Arguments

out

is the output of function selectK.

pos

is a n-by-2 matrix of position.

size

is a positive value for characterizing the size of point in the plot, which is the same as size in ggplot2.

shape

is a positive value for characterizing the shape of point in the plot, which is the same as shape in ggplot2.

Details

The function ClusterPlot is used to Visualize spatial clusters.

Value

a ggplot2 object.

Examples

1
2
3
4
5
pos = cbind(rep(1:5, each=5), rep(1:5, 5))
out = list()
out[[1]] = ""
out[[2]] = rep(1:5, each = 5)
ClusterPlot(out, pos)

SC.MEB documentation built on Oct. 8, 2021, 9:08 a.m.