Perform fuzzy clustering of each species based on their abundance and occupancy.
fuzzyq(
M,
diss = "gower",
rm.absent = FALSE,
sorting = TRUE,
keep.Diss = FALSE,
std = FALSE,
wgts = c(1, 1),
...
)A matrix or data frame of species abundances (columns). Each row represents a site.
String. Specify the dissimilarity coefficient to be used. Default
is "gower". See daisy in package cluster for
other choices.
Logical. Whether or not absent species are to be removed from the calculations.
Logical. If TRUE (the default) species are sorted in
the output by ascending silhouette widths within each cluster, else species
are arranged in the same order as in the input matrix or data frame.
Logical. Whether or not the species dissimilarity matrix
shoudl be returned. The default is FALSE.
Logical. Whether or not the measurements of occupancy and
abundance are to be standardized before calculating the dissimilarities.
Measurements are standardized for each variable (column), by subtracting
the variable's mean value and dividing by the variable's mean absolute
deviation. It only takes effect if diss is different from "gower".
an optional numeric vector of length 2. To be used if diss = "gower", specifying weights for occupancy and abundance, respectively. Default is 1 each as in Gower's original formula.
Arguments to be passed to function fanny in package
cluster.
A list of class fuzzyq containing the following:
A_OAbundance-occupancy information for each species.
DissObject of class dist with pairwise dissimilarities among
species based on A_O. (only if keep.Diss = TRUE).
sppClustering metrics per species: Cluster membership (where 0 and 1 denote allocation to the rare and common category, respectively), Silhouette Widths and Commonness Indices).
globalCommunity level clustering metrics: Average silhouette widths per cluster and globally, Mean commonness indices per cluster and Normalized Dunn's coefficient.
# NOT RUN {
data(antsA)
FQAnts <- fuzzyq(antsA, sorting = TRUE)
# }
Run the code above in your browser using DataLab