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: 15 × 2
#>    hexID pts_list     
#>    <int> <named list> 
#>  1    18 <int [3,750]>
#>  2    12 <int [3,750]>
#>  3     7 <int [3,750]>
#>  4    13 <int [3,750]>
#>  5    14 <int [3,750]>
#>  6     5 <int [3,750]>
#>  7    15 <int [3,750]>
#>  8     2 <int [3,750]>
#>  9    19 <int [3,750]>
#> 10     6 <int [3,750]>
#> 11     1 <int [3,750]>
#> 12    11 <int [3,750]>
#> 13     8 <int [3,750]>
#> 14    17 <int [3,750]>
#> 15     3 <int [3,750]>