hex_binning: Hexagonal binning

View source: R/2d.R

hex_binningR Documentation

Hexagonal binning

Description

This function generates the hexagonal object.

Usage

hex_binning(nldr_obj, b1 = 5, q = 0.1)

Arguments

nldr_obj

A list of a tibble contains scaled first and second columns of NLDR data, and numeric vectors representing the limits of the original NLDR data.

b1

Number of bins along the x axis.

q

The buffer amount as proportion of data range.

Value

A object that contains numeric vector that contains binwidths (a1), vertical distance (a2), bins along the x and y axes respectively (bins), numeric vector that contains hexagonal starting point coordinates all hexagonal bin centroids (centroids), hexagonal coordinates of the full grid (hex_poly), embedding components with their corresponding hexagon IDs (data_hb_id), hex bins with their corresponding standardise counts (std_cts), total number of hex bins (b), number of non-empty hex bins (m) and points within each hexagon (pts_bins).

Examples

hex_binning(nldr_obj = scurve_model_obj$nldr_obj, b1 = 5, q = 0.1)


quollr documentation built on Aug. 8, 2025, 6:08 p.m.