Skip to contents

This function maps points to their corresponding hexagonal bins.

Usage

find_pts(data_hb)

Arguments

data_hb

A data frame with data, ID and hexagonal bin IDs.

Value

A tibble with hexagonal bin IDs and the corresponding points.

Examples

umap_with_hb_id <- s_curve_obj$s_curve_umap_hb_obj$data_hb_id
find_pts(data_hb = umap_with_hb_id)
#> # A tibble: 125 × 2
#>    hb_id pts_list  
#>    <int> <list>    
#>  1    18 <int [5]> 
#>  2    19 <int [13]>
#>  3    20 <int [11]>
#>  4    34 <int [41]>
#>  5    35 <int [38]>
#>  6    36 <int [36]>
#>  7    37 <int [39]>
#>  8    38 <int [21]>
#>  9    39 <int [24]>
#> 10    40 <int [19]>
#> # ℹ 115 more rows