Learn R Programming

ggpicrust2 (version 2.5.10)

calculate_pseudocount: Calculate data-driven pseudocount for log transformation

Description

Calculates a pseudocount based on the data to avoid log(0) issues. Uses half of the minimum non-zero value to ensure the pseudocount is smaller than any real value in the data.

Usage

calculate_pseudocount(values)

Value

Pseudocount value (half of minimum non-zero value, or 1e-6 fallback)

Arguments

values

Numeric vector of abundance values