block by pbogden dbc8392abd2472f37e40

acled heatmap

Full Screen

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  =  e

Substituting

          a   y         (a * y)
x  =  ( e   )    =    e

then

ln(x)  = a * y

Use a = ln(10),

y = ln(x)/ln(10)

index.html

hexbin.js

histogram.html

histogram2.html

index0.html

index1.html

index2.html