
Extract hexagonal bin centroids coordinates and the corresponding standardise counts.
Source:R/2d.R
extract_hexbin_centroids.Rd
Extract hexagonal bin centroids coordinates and the corresponding 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