This post explains how to build a hexbin chart with R using the
hexbin
package. Hexbin chart is a
2d density chart, allowing to
visualize the relationship between 2 numeric variables.
Scatterplots can get very hard to interpret when displaying large datasets, as points inevitably overplot and can???t be individually discerned.
Binning can be though of as a two-dimensional
histogram, where shades of the bins
take the place of the heights of the bars. This technique is
computed in the hexbin
package.
This example has been published by Myles Harrison on R-bloggers.
👋 After crafting hundreds of R charts over 12 years, I've distilled my top 10 tips and tricks. Receive them via email! One insight per day for the next 10 days! 🔥