R/utils.R

Defines functions make_bins

make_bins <- function(v, pal, where) {
  force(v)
  pal[as.integer(cut(v, where))]
}

Try the ggredist package in your browser

Any scripts or data that you put into this service are public.

ggredist documentation built on Aug. 29, 2025, 5:31 p.m.