dynamic_pretty_breaks: Compute dynamic pretty breaks for continuous x-axis

View source: R/internal-plotting_helpers.R

dynamic_pretty_breaksR 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.


MAPCtools documentation built on June 25, 2025, 5:09 p.m.