shiplength_plot: Plot length of ships in clusters

View source: R/FleetSegmentation.R

shiplength_plotR Documentation

Plot length of ships in clusters

Description

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.

Usage

shiplength_plot(clustering, shiplength, subset = NULL)

Arguments

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.

Examples

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)

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