Malaysia - Dengue Cases from Year 2012 To 2015

Shikin2015
Monday, February 22, 2016

Overview

Dengue fever is a disease caused by viruses that are transmitted to people by mosquitoes. Dengue fever usually causes fever (high, about 104 F-105 F), skin rash (see Figure), and pain (headaches, often severe muscle & joint pains).

alt text
In Malaysia, dengue fever is a nationwide health issue with an average of > 300 dengue fever cases reported daily.

This project will show dengue data in Malaysia from 2012 to 2015. The data is downloaded from http://www.data.gov.my.

Project Synopsis

The Shiny apps will display dengue data from all the states in Malaysia from Year 2012 to 2015. alt text

  • Tab List Of Dengue Data
    User need to choose the year to see list of dengue data
  • Tab Plot Dengue Cases
    User need to click PLOT DENGUE CASES tab to see the trend of dengue outbreak in Malaysia

How It Works

Step 1: Download 4 files of the dengue data in csv format from http://www.data.gov.my. Then merge the data using rbind into one datatable

Step 2: Rename the columns in the datatable into a meaningful names such as Year, Week, State, District, Location, Total_Cases and Outbreak_Duration

Step 3: Change the object structures of variables, Total_Cases and Outbreak_Duration (as.numeric) and Year (as.factor)

Step 4: Ensure all data State has the same pattern by using gsub function and lastly remove NA

The Shiny Application

The shiny apps can be viewed at https://shikin2015.shinyapps.io/shyniio/

The code for the shiny apps can be downloaded from the github repo at https://github.com/Shikin2015/DevelopingDataProduct

This repo contains all the code and data making up this solution. The files and folders are the following:

  • README.md
  • The shiny app codes: ui.R and server.R
  • data file: Dengue.csv