dynamic_pretty_breaks {MAPCtools} | R Documentation |
Compute dynamic pretty breaks for continuous x-axis
Description
Internal helper to compute breaks on a numeric scale, ensuring the number of breaks is in a desired range and aligned with data bounds.
Usage
dynamic_pretty_breaks(x, target_n = 8, max_breaks = 12, min_breaks = 3)
Arguments
x |
A numeric vector. |
target_n |
Target number of breaks. |
max_breaks |
Maximum allowed number of breaks. |
min_breaks |
Minimum allowed number of breaks. |
Value
A numeric vector of break points.
[Package MAPCtools version 0.1.0 Index]