make_major_tick_labels: Create a vector of x-axis tick labels by only populating the...

View source: R/utils-make-major-tick-labels.R

make_major_tick_labelsR Documentation

Create a vector of x-axis tick labels by only populating the labels found at a given modulo, i.e. every nth tick mark will have a label

Description

Create a vector of x-axis tick labels by only populating the labels found at a given modulo, i.e. every nth tick mark will have a label

Usage

make_major_tick_labels(x_breaks, modulo = 5)

Arguments

x_breaks

A vector of the x-axis tick locations that appear on the plot

modulo

The value to use in the modulo operation to determine which tick marks will have a label and which won't

Value

A vector of labels


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.