cluster_size_plot: Plot number of ships in clusters

View source: R/FleetSegmentation.R

cluster_size_plotR Documentation

Plot number of ships in clusters

Description

This is function creates an overview plot of the number of ships in each cluster.

Usage

cluster_size_plot(clustering, subset = NULL)

Arguments

clustering

The result of the clustering procedure, stored as a data frame.

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)
cluster_size_plot(clustering = clustering)

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