Skip to contents

Extract hexagonal bin centroids coordinates and the corresponding standardise counts.

Usage

extract_hexbin_centroids(centroids_df, counts_df)

Arguments

centroids_df

A tibble that contains all hexagonal bin centroid coordinates with hexagon IDs.

counts_df

A tibble that contains hexagon IDs with the standardise number of points within each hexagon.

Value

A tibble contains hexagon ID, centroid coordinates, and standardise counts.

Examples

all_centroids_df <- s_curve_obj$s_curve_umap_hb_obj$centroids
counts_df <- s_curve_obj$s_curve_umap_hb_obj$std_cts
extract_hexbin_centroids(centroids_df = all_centroids_df,
counts_df = counts_df)
#> # A tibble: 240 × 6
#>    hexID     c_x     c_y bin_counts std_counts drop_empty
#>    <int>   <dbl>   <dbl>      <int>      <dbl> <lgl>     
#>  1     1 -0.1    -0.0885         NA         NA TRUE      
#>  2     2 -0.0174 -0.0885         NA         NA TRUE      
#>  3     3  0.0653 -0.0885         NA         NA TRUE      
#>  4     4  0.148  -0.0885         NA         NA TRUE      
#>  5     5  0.231  -0.0885         NA         NA TRUE      
#>  6     6  0.313  -0.0885         NA         NA TRUE      
#>  7     7  0.396  -0.0885         NA         NA TRUE      
#>  8     8  0.478  -0.0885         NA         NA TRUE      
#>  9     9  0.561  -0.0885         NA         NA TRUE      
#> 10    10  0.644  -0.0885         NA         NA TRUE      
#> # ℹ 230 more rows