This BMI calculator app is developed using R Shiny and utilizes two
libraries: shiny and plotly.
library(shiny)library(plotly)
Adjusting Height & Weight
Slider input for adjusting height in centimeters.
Instructions to manipulate the height slider.
sliderInput("cm","Height in centimeters:",min =100,max =300,value =172)
Slider input for adjusting weight in kilograms.
Instructions to manipulate the weight slider.
sliderInput("kg","Mass in kilograms:",min =20,max =200,value =68)
BMI Plots
Tabset panel showing two plots: WHO (BMI) and Asia-Pacific
(BMI).
Explanation of the displayed BMI plots.
Highlighting BMI categories: underweight, normal, overweight, and
obese.
Indication of clicked points on the plots.
output$bmiPlotWHO <-renderPlot({# For the full code, please refer to my GitHub account.})output$bmiPlotAsian <-renderPlot({# For the full code, please refer to my GitHub account.})
BMI Scatterplot
Displaying a 3D scatter plot of BMI.
Description of interactive features: hover for BMI information.
Axis labels and orientation information.
output$bmiScatterplot <-renderPlotly({# For the full code, please refer to my GitHub account.})