plot_cgi: Plot inertia and center of gravity

Description Usage Arguments Value

View source: R/plot_cgi.R

Description

Make a plot with center of gravity per trip, trip catch, and trip initial date.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_cgi(
  data,
  vessel_name,
  save_folder = "./",
  color_scale = c("blue", "white", "red"),
  alpha = 0.1,
  mainTitle = NULL,
  save_plot = FALSE,
  ...
)

Arguments

data

Dataset with required quantities obtained from the preprocessing function.

vessel_name

Vessel name to plot trajectories as shown in the vessel information database obtained from the get_vessel_info function. 'all' can be specified to plot trajectories of all fishing vessels.

save_folder

Folder to save the plot.

color_scale

Color scale to plot trip initial dates. Standard scale specifies blue and red as the earliest and latest dates, respectively.

alpha

Alpha parameter for color scale.

mainTitle

Main title in plot. Default value is the vessel name.

save_plot

Logical value to indicate if plot is saved as PNG.

Value

A PNG where the center of gravity and intertia are shown. Bubble size is proportinal to trip catch.


gmoroncorrea/VMSIndicators documentation built on Dec. 20, 2021, 11:50 a.m.