int_breaks_rounded: Rount breaks to integers

Description Usage Arguments Value

View source: R/utils.R

Description

To generate axes breaks dynamically in ggplot, sometimes you need count values rather than a continuous scale. This function takes a range of integers and generates n equally spaced integer breaks.

Usage

1

Arguments

x

an object coercible to numeric by as.numeric.

n

integer giving the desired number of intervals. Non-integer values are rounded down.

Value

numeric equally spaced vector


JayAchar/hisreportr documentation built on March 18, 2020, 5:57 a.m.