ACLED heatmap based on Mike Bostock’s hexbin plugin
We want to compute y = log(x) – log base 10 – using ln() – natural log. y = log(x) is equivalent to:
y
x = 10 Define a = ln(10), then
a
10 = eSubstituting
a y (a * y)
x = ( e ) = ethen
ln(x) = a * yUse a = ln(10),
y = ln(x)/ln(10)