View source: R/FleetSegmentation.R
cluster_size_plot | R Documentation |
This is function creates an overview plot of the number of ships in each cluster.
cluster_size_plot(clustering, subset = NULL)
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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.