This function calculates the effective number of bins along the x and y axes
of a hexagonal grid.
Usage
calc_bins_y(bin1 = 4, r2, q = 0.1)
Arguments
- bin1
Number of bins along the x axis.
- r2
The ratio of the ranges of the original embedding components.
- 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 and width of the hexagon.
Examples
r2 <- diff(range(s_curve_noise_umap$UMAP2))/diff(range(s_curve_noise_umap$UMAP1))
calc_bins_y(bin1 = 4, r2 = r2, q = 0.1)
#> $bin2
#> [1] 8
#>
#> $a1
#> [1] 0.3829244
#>