From the course: Creating Maps with R

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Hexbin maps or hexagonally binned choropleth

Hexbin maps or hexagonally binned choropleth

From the course: Creating Maps with R

Hexbin maps or hexagonally binned choropleth

- This is a hexbin map. More technically we could call them hexagonally binned choropleth. Hexbin maps are used to visualize the distribution of events or locations. For instance, the locations of hireable bikes in a city, or where traffic accidents have occurred. There are three things you need to create a hexbin map. A set of exact coordinates for your events or locations. And ideally, you need a large number of these for your maps to make sense. Secondly, you need shape files for the region that your coordinates belong to. That could be as small as the city's limits, or an entire country. And finally, you'll need an algorithm for bidding your region into hexagons. Before we proceed, it's important to look at why we sometimes need hexbin maps. And specifically, we should ask, why not use scatter geo plots, if we have exact locations for our events? Geo scatter plots only really work for a small number of data…

Contents