R Programming Language

R is a programming language and free software environment for statistical computing and graphics supported by the R Core Team and the R Foundation for Statistical Computing. It is widely used among statisticians and data miners for developing statistical software and data analysis.

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) )

Lately I’ve been doing more and more maps with ggplot2 and R Statistics language

Lately I’ve been doing more and more maps with ggplot2 and R Statistics language. πŸ—Ί

R is good because everything is written in the script. No clicking through windows with the join, then having to fix things in the composer. Instead, it’s just a few lines of code, which you can reuse over and over again. And usually with ggplot2, things look pretty good right out of the box — and if you are unhappy with the output, tweak a line and re-run it in R’s interactive interpreter.  Plus, you get outputted those great SVG graphics, which usually are small and look good regardless of the size of the screens.

Point and click is great, especially when you don’t have the time to learn how to program or use an API but nothing really beats the speed of a good API, backed up by code that automates things puts out quality output with minimal tweaking.