Skip to contents

This function calculates the effective number of bins along the x and y axes of a hexagonal grid.

Usage

calc_bins_y(nldr_obj, b1 = 4, 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 list of numeric values that represents the effective number of bins along the y axis, height and, width of the hexagon.

Examples

calc_bins_y(nldr_obj = scurve_model_obj$nldr_obj, b1 = 4, q = 0.1)
#> $b2
#> [1] 5
#> 
#> $a1
#> [1] 0.3962013
#> 
#> $a2
#> [1] 0.3431204
#>