Learn R Programming

SC.MEB (version 1.1)

ClusterPlot: ClusterPlot.

Description

The function ClusterPlot is used to Visualize spatial clusters.

Usage

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.

Value

a ggplot2 object.

Details

The function ClusterPlot is used to Visualize spatial clusters.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab