Here's a quick slide presentation on how I built my visual BMI calculator app which can be found here :
We'll go through the following steps :
The GGPLOT background
The UI code
The server code
Antoine VILLATTE
Here's a quick slide presentation on how I built my visual BMI calculator app which can be found here :
We'll go through the following steps :
The GGPLOT background
The UI code
The server code
Here's the code for the ggplot background. I create a data frame for my BMI 16.5 to BMI 40 lines, then plot them.
After that, I plot the colored intervals with the geom_ribbon functions.
Finally, I add the text with geom_text and I manually set the positions and the slight angle

This code will require to load both the dplyr and ggplot2 packages. We have to remember to include the package load in the server code
The UI code is pretty straight forward :

The server code manipulates the inputs a lot, so we mainly use reactive expressions
