This function calculates the effective number of bins along the x-axis of a hexbin plot.
Usage
calculate_effective_x_bins(.data, x = "UMAP1", cell_area = 1)
Arguments
- .data
A data frame, data frame extension (e.g., a tibble), or a lazy data frame (e.g., from dbplyr or dtplyr).
- x
A character variable name representing the x-axis.
- cell_area
A numeric value that initialise the area of the hexagon.
Value
A numeric value representing the effective number of bins along x-axis.
Examples
calculate_effective_x_bins(.data = s_curve_noise_umap, x = "UMAP1", cell_area = 1)
#> [1] 6