1 Why your reporting process is broken

Most organizations generate their reports through a database / Excel combination. Excel is not suited for repetitive work that involves large amounts of data. The result is a resource-intensive and error-prone process, that outputs ugly plots.

1.1 How to solve it

The good news is that the data pipeline can be completely automated in R.

This means that text, plots and tables update when the underlying data changes. The benefits of this approach are:

  • Large reduction of resources that are required to do standard work;
  • Improved standardization;
  • Reduced error potential;
  • Marginal costs of updated reporting are close to zero.
  • Excel plots are ugly. R plots are not.
  • Excel output is static. R output can be made interactive.

1.2 Demonstration on Kenyan datasets

Data on population, economy and agriculture have been obtained from:

This is a sample report that shows different ways to visualize information from datasets in an automated fashion. There is therefore no particular order in the paragraphs.

With “automated” the following is meant:

  • You can use multiple data sources (databases, Word, Excel, PDFs etc) and extract the data therein.

  • The information is extracted, combined, cleaned and plotted automatically. This means that the entire report updates automatically whenever you update the datasets.

  • The report can be generated in html, Word, PDF or Excel format.

2 Timeline of maize harvest

The yearly harvest of maize in Kenya is available via FAOSTAT.

The graph below is interactive. You can:

3 Ownership of land

The ownership of land is reported by the Kenyan government. Land can be owned, rented/leased, communal, made available for free or other. The plot below shows the “owned” situation.

The plot below is interactive. You can:

4 Population and population density in rural areas

Data on population growth and densities are made available by the World Bank. By plotting different variables together you can see their relations.

What you see:

5 Agricultural economy

The added value of agriculture in the economy and other economical indicators for Kenya are made available via the World Bank. By plotting the variables separately you can see their relations.

What you see: