View source: R/FleetSegmentation.R
shiplength_plot | R Documentation |
This is function creates an overview mixed dot- and boxplot of the length of the ships in each cluster. The length can be given in cm or m, the function will auto-transform from cm to m. A boxplot will only be drawn for clusters containing more than 5 ships.
shiplength_plot(clustering, shiplength, subset = NULL)
clustering |
The result of the clustering procedure, stored as a data frame. |
shiplength |
A data frame containing the length of the ships clustered. |
subset |
Display only a subset of clusters in plot. Can be a single number or a vector of numbers. |
library(tidyverse)
data <- example_catchdata
stockdata <- assign_stocks(data=data)
catchdata <- catchdata_transformation(data = stockdata)
clustering <- segmentation_clustering(catchdata = catchdata,n_cluster = 6)
shiplength_plot(clustering = clustering,shiplength = example_lengthdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.