Course Project: Shiny App and Reproducible Pitch

Saugata Ghosh
April 25, 2017

Overview

This simple and interactive BMI (Body Mass Index) calculator was created as a Shiny Application as part of the course project for the Coursera and Johns Hopkins course on Developing Data Products.

The shiny app developed for this assignment is available at: https://saugatoghosh.shinyapps.io/BMIApp/

The source codes of ui.R and server.R are available on the Github repository:

https://github.com/saugatoghosh/BMIApp

BMI Calculator

Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women.

Given the weight (in pounds) and height (in inches) of an individual this calculator calculates the BMI in two steps:

  • First it converrts the weight into kilograms and height into metres
  • Then it uses the formula below to compute the BMI as follows:

BMI = xKG/(yM*yM)

where:

x = bodyweight in kilograms

y = height in metres

BMI Categories

Depending on range within which their BMI falls, individuals are then classified into one of four categories as below:

Underweight = < 18.5

Normal weight = 18.5 - 24.9

Overweight = 25 - 29.9

Obese = 30 or greater

Shiny App: BMI Calculator

  • Sidebar panel

    • sliderInput: Value of weight in pounds
    • sliderInput : Value of height in inches
  • Main panel

    • Tab BMI: Converted height and weight, calculated BMI, classifcation
    • Tab About: BMI defined and calculations and categories explained

Thanks!