In base R, I can create custom bins using cut. For example, I can create three bins for plotting:
cut
data.frame(x = c(5, 1, 3, 2, 2, 3)) %>% muta