Creates a function that returns every nth element from a vector, useful for axis breaks in ggplot2.
See also
Other csstyle_utilities:
colors
,
display_all_palettes()
,
set_global()
Examples
every_nth(4)(c(1:10))
#> [1] 2 6 10
if (FALSE) { # \dontrun{
scale_x_discrete(NULL, breaks = every_nth(n = 2))
} # }