Based on the documentation provided, the set_num_colors command maxed out at 9 breaks for discrete variables in the choropleth package.
Is there anyway to go around this?
Thank you
choro <- CountyChoropleth$new(imp[[i]])
choro$title <- paste0(as.character(forImg$year[i])," ", "SGL RISK INDEX")
choro$ggplot_scale = scale_fill_viridis(name="Risks rank", discrete=TRUE, option="C" , na.value="grey50")
choro$set_num_colors(8)
choro$render() -> impImg
ggsave(filename=paste0("impImg", "-",i, ".png"), bg="white", dpi=175, height = 1080, width=1920, units = "px")