http://carlosmirandad.shinyapps.io/DEPLOY/
Final Project for the Developing Data Products Coursera Class
The World Trade Organization (WTO) is the global institution that orchestrates rules of trade between nations, in order to ensure that international trade flows as smoothly, predictably, and freely as possible.
As part of its functions, the WTO collects data about import and exports from all member countries and consolidates this information in a statistical database that can be accessed by policy makers and the public.
The WTO's website presents this fascinating information in a table format which can make the analysis challenging...
Behold analysit! Our new Shiny App comes to the rescue...
Sample application code (with edits) that plots the export chart:
#Simulated User Inputs...
yr <- 2012
ctry <- c("United States","Saudi Arabia","Germany","India","Brazil","China","Colombia")
comm <- c("A","F","M")
#Plotting the "Export Chart"...
dExp <- d[d$Year==yr & d$Reporting_Country %in% ctry & d$Commodity %in% comm & d$Flow=="Exports",]
qplot(x=Reporting_Country, y=Value, fill=Commodity_Type, data=dExp, main=paste("Reported Exports for Year",as.character(yr)), xlab="", ylab="Total Export Value (US$ Million)", geom="bar", stat="identity", position="dodge")