Overview

This page shows the global rainfall in mm. Data is by country. It uses the plotly library to create this interactive map.

Data Source:ttps://data.worldbank.org/indicator/ag.lnd.prcp.mm

## Loading required package: ggplot2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout

Feautures included in this map:

  1. Lists rainfall by country.
  2. If you hover you will see Country-Country Code-Rainfall.
  3. Countries are colored gradient to amount of rainfall.
plot_geo(rainfall) %>%
    add_trace(
        z = ~rainfall, color = ~rainfall, colors = 'Blues',
        text = ~hover, locations = ~code, marker = list(line = l)
    ) %>%
    colorbar(title = 'Global Rainfall') %>%
    layout(
        title = 'Rainfall by Country<br>Source(Hover for breakdown)',
        geo = g
    )