Skip to contents

Returns every nth discrete value

Usage

every_nth(n)

Arguments

n

nth discrete value

Value

A function that returns every nth discrete value.

Examples

every_nth(4)(c(1:10))
#> [1]  2  6 10
if (FALSE) { # \dontrun{
scale_x_discrete(NULL, breaks = every_nth(n = 2))
} # }