Skip to contents

This function computes the standardize number of points within each hexagon.

Usage

compute_std_counts(data_hb)

Arguments

data_hb

A tibble with embedding and hexagonal bin IDs.

Value

A tibble that contains hexagon IDs and the corresponding standardize counts.

Examples

umap_with_hb_id <- s_curve_obj$s_curve_umap_hb_obj$data_hb_id
compute_std_counts(data_hb = umap_with_hb_id)
#> # A tibble: 125 × 3
#>    hb_id     n std_counts
#>    <int> <int>      <dbl>
#>  1    18     5     0.0781
#>  2    19    13     0.203 
#>  3    20    11     0.172 
#>  4    34    41     0.641 
#>  5    35    38     0.594 
#>  6    36    36     0.562 
#>  7    37    39     0.609 
#>  8    38    21     0.328 
#>  9    39    24     0.375 
#> 10    40    19     0.297 
#> # ℹ 115 more rows