extract_hexbin_mean: Extract hexagonal bin mean coordinates and the corresponding...

View source: R/2d.R

extract_hexbin_meanR Documentation

Extract hexagonal bin mean coordinates and the corresponding standardize counts.

Description

Extract hexagonal bin mean coordinates and the corresponding standardize counts.

Usage

extract_hexbin_mean(data_hb, counts_data, centroids_data)

Arguments

data_hb

A tibble with embedding components and hexagonal bin IDs.

counts_data

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

centroids_data

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

Value

A tibble contains hexagon ID (h), bin means (c_x, c_y), bin counts (n_h), and standardise counts (w_h).

Examples

all_centroids_df <- scurve_model_obj$hb_obj$centroids
counts_data <- scurve_model_obj$hb_obj$std_cts
umap_with_hb_id <- scurve_model_obj$hb_obj$data_hb_id
extract_hexbin_mean(data_hb = umap_with_hb_id, counts_data = counts_data,
centroids_data = all_centroids_df)


quollr documentation built on Aug. 8, 2025, 6:08 p.m.