Skip to contents

This function determines the number of non-empty bins needed to satisfy a minimum requirement.

Usage

find_non_empty_bins(
  nldr_df,
  x = "UMAP1",
  y = "UMAP2",
  shape_val,
  non_empty_bins
)

Arguments

nldr_df

A data frame containing 2D embeddings.

x

The name of the column that contains first 2D embeddings component.

y

The name of the column that contains second 2D embeddings component.

shape_val

The value of the shape parameter for hexagon binning.

non_empty_bins

The desired number of non-empty bins.

Value

The number of bins along the x-axis needed to achieve the specified number of non-empty bins.

Examples

shape_value <- 1.833091
non_empty_bins <- 3
find_non_empty_bins(nldr_df = s_curve_noise_umap, x = "UMAP1", y = "UMAP2",
shape_val = shape_value, non_empty_bins)