Syndicate content

tcdata360

Interactive product export streamgraphs with data360r (now in CRAN!)

Reg Onglao's picture

Building beautiful, interactive charts is becoming easier nowadays in R, especially with open source packages such as plot.ly, ggplot2 and leaflet. But behind the scenes, there is an often untold, gruesome part of creating data visualizations -- downloading, cleaning, and processing data into the correct format.

Making data access and download easier is one of the reasons we developed data360r, recently available on CRAN and the newest addition to the TCdata360 Data Science Corner.

Data360r is a nifty R wrapper for the TCdata360 API, where R users ranging from beginners to experts can easily download trade and competitiveness data, metadata, and resources found in TCdata360 using single-line R functions.

In an earlier blog, we outlined some benefits of using data360r. In this blog, we’ll show you how to make an interactive streamgraph using the data360r and streamgraph packages in just a few lines of code! For more usecases and tips, go to https://tcdata360.worldbank.org/tools/data360r.

Introducing Data360R — data to the power of R

Reg Onglao's picture
 

Last January 2017, the World Bank launched TCdata360 (tcdata360.worldbank.org/), a new open data platform that features more than 2,000 trade and competitiveness indicators from 40+ data sources inside and outside the World Bank Group. Users of the website can compare countries, download raw data, create and share data visualizations on social media, get country snapshots and thematic reports, read data stories, connect through an application programming interface (API), and more.

From data blur to slow-mo clarity: big data in trade and competitiveness

Prasanna Lal Das's picture

Tolstoy's War and Peace was the big data of its time. A memorable moment from the epic novel occurs when Prince Andrei awakens following a severe injury on the battlefield. He fears the worst but, "above him there was nothing but the sky, the lofty heavens, not clear, yet immeasurably lofty, with gray clouds slowly drifting across them. 'How quiet, solemn, and serene, not at all as it was when I was running.'" Time appears to slow down and the Prince sees life more lucidly than ever before as he discovers the potential for happiness within him.

In many ways the scene captures what we demand of big data—not the bustle of zillions of data points as confusing as the fog of war, but sharp, clear insights that bring the right information into relief and help us connect strands previously unseen. The question of whether this idea is achievable is the starting point of a paper about big data on trade and competitiveness just published by the World Bank Group. In it, we asked—can big data help policy makers see the world in ways they haven't before? Are decisions that are informed by the vast amounts of data that envelop us better than decisions based on traditional tools? We didn't want a story trumpeting the miracles of big data; we wanted instead to see the reality of big data in action, in its messiness and its splendor.