calc_bins {quollr}R Documentation

Calculate the effective number of bins along x-axis and y-axis

Description

This function calculates the effective number of bins along the x and y axes of a hexagonal grid.

Usage

calc_bins(data, x, y, hex_size = NA, buffer_x = NA, buffer_y = NA)

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.

hex_size

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

buffer_x

The buffer size along the x-axis.

buffer_y

The buffer size along the y-axis.

Value

A list of numeric values that represents the effective number of bins along the x and y axes of a hexagonal grid.

Examples

calc_bins(data = s_curve_noise_umap_scaled, x = "UMAP1", y = "UMAP2",
hex_size = NA, buffer_x = NA, buffer_y = NA)


[Package quollr version 0.1.1 Index]