View source: R/FleetSegmentation.R
| cluster_assemblages_MDS | R Documentation |
This is function creates an MDS of the assemblage-based catches of the clustering result. The MDS can be either 2-dimensional (which is the default setting), or 3-dimensional. 3-dimensional MDS are harder to interpret, but due to the nature of compositional catch data, 2-dimensional MDS often have a poor goodness of fit (GoF) and have to be treated with caution.
cluster_assemblages_MDS(
data,
catchdata,
clustering,
interactive = F,
GoF = T,
distance = "jaccard",
dim = 2
)
data |
The original, untransformed data that was used for the clustering. |
catchdata |
The transformed catchdata created with catchdata_transformation() |
clustering |
The result of the clustering procedure, stored as a data frame. |
interactive |
boolean |
GoF |
Display goodness of fit in the MDS plot. Defaults to TRUE |
distance |
The distance measure used. Defaults to modified (metric conversion) Bray-Curtis distance distance. CAUTION! The clustering approach for the fleet segmentation is designed to work with modified (metric-converted) Bray-Curtis distance and the average linkage method! Changing either of them is not advised! |
dim |
The dimensions of the MDS. Use '2' for a 2-dimensional, classic MDS and '3' for a 3-dimensional MDS. |
data <- example_catchdata
stockdata <- assign_stocks(data=data)
catchdata <- catchdata_transformation(data = stockdata)
clustering <- segmentation_clustering(catchdata = catchdata,n_cluster = 6)
cluster_assemblages_MDS(data =stockdata, catchdata = catchdata,clustering = clustering, GoF=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.