labelGenerator: Creating labels for an axis at a given interval so that ticks...

View source: R/visual__labelGenerator.R

labelGeneratorR Documentation

Creating labels for an axis at a given interval so that ticks can be denser than labels

Description

For example, you may want the axis to be labelled by 0, 1k, 2k, etc.

Usage

labelGenerator(ticks, interval, labels)

Arguments

ticks

The ticks on an axis

interval

N, a label is laid every N ticks

labels

A vector of labels to be placed on the axis

Author(s)

Yu Wan (wanyuac@gmail.com)


wanyuac/handyR documentation built on June 10, 2024, 1:24 a.m.