Skip to contents

This S7 generic function provides the labels for linear (non-repeating) positions of a time granule. These functions should return locale specific labels.

Usage

linear_labels(granule, ...)

Arguments

granule

A time granule object representing the granule (e.g., year(1L))

...

Additional arguments for methods.

Value

Character vector of labels for the time point.

Examples

# Labels for years on a linear axis
with(cal_gregorian, linear_labels(year(1L), 2020:2025))
#> [1] 2020 2021 2022 2023 2024 2025