Using the bi_class(), I am trying to create mapping classes for a bivariate map. These data will be stored in a new variable named bi_class, which will be added to the given data object. The code below returns an error of
Error in cut.default(.data[[var]], breaks = classInt::classIntervals(.data[[var]],:'breaks' are not unique
IDD_nhmap <- IDD_nhmap %>%
group_by(ProjectID) %>%
bi_class(x = race_black, y = svi, style = "quantile", dim = 3) %>%
bi_class(x = race_hisp, y = svi, style = "quantile", dim = 3)