Jenks breaks and ggplot Here is how to create Jenks breaks classification for maps with ggplot2 with class labels that show only the top number in the class. classes <- classIntervals(joined$Value, n = 9, style = "fisher") joined <- joined %>% mutate(percent_class = cut(joined$Value, breaks=classes$brks, include.lowest = T, labels=scales::comma(classes$brks[2:length(classes$brks)]),0) )
Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Δ