breakPointsFunc: Generate major axis tick breakpoints

View source: R/helpers_elements.R

breakPointsFuncR Documentation

Generate major axis tick breakpoints

Description

Generates uniform and visually appealing major tick positions based on sequence length and target tick count (avoids excessively short end ticks)

Usage

breakPointsFunc(max_value, n = 5, tol = 0.5)

Arguments

max_value

Numeric, sequence length (maximum value)

n

Integer, target number of ticks, default 5

tol

Numeric (0-1), tolerance threshold for end tick length (proportion of the median length of other ticks), default 0.5

Value

Numeric vector, major tick positions (including 0 and max_value)


ggchord documentation built on Aug. 8, 2025, 6:15 p.m.