Exploring the adiposity, physiological and academic associations of choose-your-own-adventure time reallocations between daily activities
This is a Shiny App (interactive webpage) that allows the user to input their daily time-use and proposed time-use changes to see how it affects their predicted body fat percentage, physiological well-being and academic performance.
The following steps will allow you to run the realloc_adventure
Shiny App (above screenshot) on your own computer:
- Make sure you have R and RStudio installed.
- Go to the
Code
button on the top right of this page and then clickDownload zip
(see below screenshot). - Unzip the download.
- Double click the
realloc_adventure.Rproj
file - this should open an RStudio session. - (only has to be performed once) Make sure the prerequisite packages are installed by running the below command in the R console:
install.packages(
c(
"shiny", "shinydashboard", "shinyjs", "dplyr",
"ggplot2", "plotly", "compositions", "foreach"
)
)
- Now to finally run the Shiny App by running the below command in the R console:
library(shiny)
runApp()