powered by
The function ClusterPlot is used to Visualize spatial clusters.
ClusterPlot(out, pos, size = 5, shape = 15)
is the output of function selectK.
is a n-by-2 matrix of position.
is a positive value for characterizing the size of point in the plot, which is the same as size in ggplot2.
is a positive value for characterizing the shape of point in the plot, which is the same as shape in ggplot2.
a ggplot2 object.
# 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