"Easy GDP" App Presentation



"Easy GDP" App Presentation

0 0


DevelopingDataSlides


On Github dkaing / DevelopingDataSlides

"Easy GDP" App Presentation

by Davin Kaing

Brief Overview

  • This app uses Gross Domestic Product data of the U.S. from the years: 1960 to 2013.

  • The purpose of this app is to quantify the frequencies of different GDP values in the time period.

  • These quanitifications vary depending on the bins used.

The GDP Data

  • The GDP Data of the U.S. is downloaded from the WDI package. The code below shows the data extraction.
library(WDI)
## Loading required package: RJSONIO
US = WDI(indicator = 'NY.GDP.PCAP.KD', country = c( 'US'), start = 1940, end = 2013)
US <- US[,3:4]
colnames(US) <- c("GDP", "Year")

Data Visualization

plot(US$Year, US$GDP, type = "l", xlab = "Year", ylab = "GDP per Capita", main = "GDP Per Capita of the U.S.")

GDP Frequencies

  • This app quantify the GDP frequencies from year 1960 to 2000. A histogram of the GDP is plotted and it can be modified by the number of bins by using the slider bar in the app.

  • With this app, it is easy to look at the changes of GDP frequencies with respect to the number of bins used.

  • This app is also useful for statistics students to look at the accuracy of a histogram plot when modulating the number of bins.

GDP Histogram Plot

hist(US$GDP, xlab = "U.S. GDP", ylab = "Frequencies", main = "GDP per Capita Frequencies")