plot_catch_comp: Plot the spatial catch composition from the commercial...

plot_catch_compR Documentation

Plot the spatial catch composition from the commercial catches as 'square pie charts' using mapplots.

Description

Plotting of spatial catch compositions at different levels of aggregation

Usage

plot_catch_comp(
  gran = c(20, 10, 5),
  logs = logs,
  fleets = 1:2,
  vessels = 1:5,
  trips = 1:20,
  years = 18:20,
  cluster_plot = FALSE,
  cluster_k = 5,
  scale_data = NULL
)

Arguments

gran

is a Numeric Vector of granularities required

logs

is the fleet logs from combine_logs

fleets

is a Numeric Vector of the fleets to include in the catch composition plot

vessels

is a Numeric Vector of the vessels to include in the plot

trips

is a Numeric Vector of the trips to include

years

is a Numeric Vector of the years

cluster_plot

is a logical, determines whether also to run PAM cluserting on the catch compositions and plot the clusters spatially

scale_data

is a logical, whether to normalise the data before the clustering

clusters_k

is the number of clusters to search for in the PAM clustering algorithm

Examples

plot_catch_comp(gran = c(20,10,5,2), logs = logs, fleets = 1:2, vessels =
1:5. trips = 1:20, years = 18:20, cluster_plot = FALSE, cluster_k = 5,
scale_data = TRUE)

pdolder/MixFishSim documentation built on Oct. 17, 2023, 4:25 p.m.