Geobubble
Examples
- Plot tsunami data as bubbles, where the size of each bubble corresponds roughly to the height of tsunami.
::
let log_tsunami_height = tsunami_height.apply({x => log(x + 2.0)})
geobubble(tsunami_lat, tsunami_lon, log_tsunami_height)
Result:
.. image:: ../../../tests/imgs/geography/geobubble1.png :align: center :width: 360
- Plot tsunami data as bubbles, with size of bubble corresponding to height of tsunami, and different colors distinguish different causes.
::
let log_tsunami_height = tsunami_height.apply({x => log(x + 2.0)})
let tsunami_cause = empty<Float64>(tsunami_cause_ints.size())
for (i in 0..tsunami_cause_ints.size()) {
if (tsunami_cause_ints[i] > 0) {
tsunami_cause[i] = Float64(tsunami_cause_ints[i])
} else {
tsunami_cause[i] = NaN64
}
}
geobubble(tsunami_lat, tsunami_lon, log_tsunami_height, tsunami_cause)
Result:
.. image:: ../../../tests/imgs/geography/geobubble2.png :align: center :width: 360