Learn R Programming

quollr (version 0.3.7)

gen_centroids: Generate centroid coordinate

Description

This function generates all possible centroids in the hexagonal grid.

Usage

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

Value

A tibble contains hexIDs (h), x and y coordinates (c_x, c_y respectively) of all hexagon bin centroids.

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.

Examples

Run this code
gen_centroids(nldr_obj = scurve_model_obj$nldr_obj, b1 = 5, q = 0.1)

Run the code above in your browser using DataLab