BMI Calculator

Group 3
14 June 2021

Group Members:
Lim Whei Han
Imran Asyraaf Bin Mohd Ikhalan
Lim Kang Zheng
Lim Zhuan De

Problem Statement

BMI World Map shows that obesity is not only faced by high income countries, there are factors like lifestyle and diet to consider. What would be the most interactive way to understand BMI across countries?

Aim of Project

  • Provide a simple yet beautiful online tool to let people calculate their BMI
  • Explore average BMI across different countries
  • Provide general health tips for people with different weight categories

The App Description

  • To use the app first select which units of measurement for the height and weight
  • Then enter your height and weight in the input box

Link to the source code here
Link to the app here

Output

  • Displays the calculated BMI and display the category of the BMI value

The Calculation

The app accepted both metric(kg & m) units or imperial (lb & in) units. The formula for both units are given below.

  • For kg/cm
bmi <- input$weight/((input$height/100)* (input$height/100))
  • For inch/lbs
bmi <- ((input$weight / (input$height * input$height)) * 703)

How the Map Works

Uses “Leaflet” library to display the map.

  • Objective: display the data from higest BMI index to the lowest one
  • Click the red circle on that particular country to get information.
  • Colour gradient showing the higher BMI index have darker colour than the other country.

Dataset used

  • For world bmi index is from World Health Organization(WHO) portal here
  • For each country latitude and longitude were taken from here

plot of chunk unnamed-chunk-3