integer_breaks: breaks function to encourage integer-valued breaks, based on...

View source: R/scale_break_functions.R

integer_breaksR Documentation

breaks function to encourage integer-valued breaks, based on input from pretty

Description

breaks function to encourage integer-valued breaks, based on input from pretty

Usage

integer_breaks(n = 5, ...)

Arguments

n

number of breaks (default = 5)

...

Additional arguments passed to the pretty() function

Details

Code from here: https://joshuacook.netlify.app/post/integer-values-ggplot-axis/

Value

a function for generating integer-valued breaks on a continuous scale


michaelhallquist/ggbrain documentation built on June 11, 2025, 12:47 a.m.