1. Learn
  2. /
  3. Courses
  4. /
  5. Building Dashboards with shinydashboard

Connected

Exercise

Practicing sliderInput

You have seen some common examples of shinyApp inputs in the video. You will first practice with sliderInput, which will give you either a one-sided or two sided slider.

Suppose you are building a shinyApp based on some sleep data which has been stored as sleep. You now want to allow the app user to filter the data by selecting a range of values for the average number of hours spent sleeping.

In this exercise, the shiny library has already been loaded for you.

Instructions 1/2

undefined XP
  • 1
    • Set the min and max values to 7.5 and 11.
    • Set the initial value to 8.
    • Change the step to 0.5.
  • 2
    • Change the value argument so that you obtain a two-sided slider with initial values 8 and 10.5.