by Davin Kaing
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.
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")
plot(US$Year, US$GDP, type = "l", xlab = "Year", ylab = "GDP per Capita", main = "GDP Per Capita of the U.S.")
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.
hist(US$GDP, xlab = "U.S. GDP", ylab = "Frequencies", main = "GDP per Capita Frequencies")