Open ftavella opened 8 months ago
For this you will need to create a module
golem::add_module(name = "location_dropdown", with_test = TRUE)
and then go to the file mod_location_dropdown.R
where you will have the boilerplate code for a ui
and a server
. On the ui
you can add a dropdown and a plot. Then on the server
you need to grab the info from the dropdown and with that calculate a rise_time
and fall_time
for the light (to start you can assume a fixed season). With those use the function lightExposure
to calculate how the light looks for time 0 to 24 hrs. Then plot that on the plot you added on the ui
.
Create a module (mini-app) that has a dropdown where users can select their location (see what's easier to initialize the options). At the bottom of the dropdown, add a plot with the light someone will see for each season.
Use the
lightExposure
function for a subject that is awake and not in school. For amplitude, let's do some research as to which is the difference in lux we get from each season.