Learn R Programming

quollr (version 0.3.7)

extract_hexbin_mean: 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)

Value

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

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab