Usage
clustermap(sp.obj, names.var, clustnum, method=c("kmeans","hclust"), type=NULL,
centers=NULL, scale=FALSE, names.arg="", names.attr=names(sp.obj), criteria=NULL,
carte=NULL, identify=FALSE, cex.lab=0.8, pch=16, col="lightblue3",
xlab="Cluster", ylab="Number", axes=FALSE, lablong="", lablat="")
Arguments
sp.obj
object of class extending Spatial-class
names.var
a vector of character; attribute names or column numbers in attribute table
clustnum
integer, number of clusters
method
two methods : `kmeans' by default or `hclust'
type
If method=`hclust', type=`complete' by default (the possibilities are given in help(hclust)
as `ward', `single', etc). If method=`kmeans', type="Hartigan-Wong" by default (the possibilities are given in help(kmeans)
as `Forgy', etc)
centers
If method='kmeans', user can give a matrix with initial cluster centers.
scale
If scale=TRUE, the dataset is reducted.
names.arg
a vector of character, names of cluster
names.attr
names to use in panel (if different from the names of variable used in sp.obj)
criteria
a vector of boolean of size the number of spatial units, which permit to represent preselected sites with a cross, using the tcltk window
carte
matrix with 2 columns for drawing spatial polygonal contours : x and y coordinates of the vertices of the polygon
identify
if not FALSE, identify plotted objects (currently only working for points plots). Labels for identification are the row.names of the attribute table row.names(as.data.frame(sp.obj)).
cex.lab
character size of label
pch
a vector of symbol which must be equal to the number of group else all sites are printed in pch[1]
col
a vector of colors which must be equal to the number of group else all sites and all bars are printed in col[1]
xlab
a title for the graphic x-axis
ylab
a title for the graphic y-axis
axes
a boolean with TRUE for drawing axes on the map
lablong
name of the x-axis that will be printed on the map
lablat
name of the y-axis that will be printed on the map