find_non_empty_bins {quollr}R Documentation

Find the number of bins required to achieve required number of non-empty bins.

Description

This function determines the number of bins along the x and y axes to obtain a specific number of non-empty bins.

Usage

find_non_empty_bins(
  data,
  x = x,
  y = y,
  non_empty_bins,
  x_start = NA,
  y_start = NA,
  buffer_x = NA,
  buffer_y = NA,
  hex_size = NA,
  col_start
)

Arguments

data

A tibble or data frame.

x

The name of the column that contains values along the x-axis.

y

The name of the column that contains values along the y-axis.

non_empty_bins

The desired number of non-empty bins.

x_start

Starting point along the x-axis for hexagonal binning.

y_start

Starting point along the y-axis for hexagonal binning.

buffer_x

The buffer size along the x-axis.

buffer_y

The buffer size along the y-axis.

hex_size

A numeric value that initializes the radius of the outer circle surrounding the hexagon.

col_start

The text that begins the column name of x and y axes of data.

Value

The number of bins along the x and y axes needed to achieve a specific number of non-empty bins.

Examples

find_non_empty_bins(data = s_curve_noise_umap_scaled,
x = "UMAP1", y = "UMAP2", non_empty_bins = 10, x_start = NA,
y_start = NA, buffer_x = NA, buffer_y = NA, hex_size = NA, col_start = "UMAP")


[Package quollr version 0.1.1 Index]