cluster_assemblages_MDS: Multi-dimensional scaling (MDS) of the assemblage-based...

View source: R/FleetSegmentation.R

cluster_assemblages_MDSR Documentation

Multi-dimensional scaling (MDS) of the assemblage-based cluster catches

Description

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.

Usage

cluster_assemblages_MDS(
  data,
  catchdata,
  clustering,
  interactive = F,
  GoF = T,
  distance = "jaccard",
  dim = 2
)

Arguments

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.

Examples

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)

ESulanke/FleetSegmentation documentation built on March 27, 2023, 10:13 p.m.