compute_hexagon_xy: Compute the coordinates for a hexagon to be shown in a...

View source: R/utils-compute-hexagon-xy.R

compute_hexagon_xyR Documentation

Compute the coordinates for a hexagon to be shown in a spatial CPUE plot

Description

Compute the coordinates for a hexagon to be shown in a spatial CPUE plot

Usage

compute_hexagon_xy(d, bin_width)

Arguments

d

Data from gfdata::get_cpue_spatial(), gfdata::get_cpue_spatial_ll(), or gfdata::get_catch_spatial()

bin_width

Bin width as defined in ggplot2::stat_summary_hex()

Value

A tibble::tibble() containing the columns 'hex_id', 'cpue$value, X, and Y


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.