Malaysia Population Trend

West Pang
18 March 2017

Introduction

For more details on authoring R presentations please visit https://support.rstudio.com/hc/en-us/articles/200486468.

  • A basic shinny app is produced to display the Malaysia population from 1947 to 2015.
  • In this application the user can specify the year to be in view in the plot by scolling across the scrollbar.
  • By clicking the 10 Years Forecast checkbox, the app will generate the 2016-2025 population forecast on the plot
  • The shiny application is available on https://p4n6.shinyapps.io/malaysia_population_trend/

Slide With Code

The codes imported contains the year and population of Malaysia, sample of codes for first 8 years display below

data<- read.csv("mpop.csv")
data[1:8,]
  Year Population
1 1947     4.9081
2 1948     4.9874
3 1949     5.0818
4 1950     5.2265
5 1951     5.3372
6 1952     5.5064
7 1953     5.7060
8 1954     5.8886

Slide With Plot

The plot below shows the Population of Malaysia from 1947 to 2015

plot of chunk unnamed-chunk-2

Conclusion

  • The app is useful for analysts to understand the growth of population in Malaysia
  • The forecast function allows analyts to predict the growth in population for the next 10 years
  • The app is capable to specify the needed time frame to view the population in Malaysia