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

Exercise

Statuses and completing the UI

One of the principles of good UI states that we ought to use colors intuitively. Luckily for us, shinydashboard has an option to set statuses in some shinydashboard elements. This is done by adding a status argument to those appropriate elements, like box(), notificationItem(), dropdownMenu(), although the latter two functions will not be covered in this course.

Setting status = "success" results in a green coloration, status = "danger" results in a red coloration, status = "warning" is orange, and so on.

Instructions

100 XP
  • Change the status of the first box in the third row to "success".
  • Refer to lines 28 to 33, where the values for ValueBox()s in the second row are specified, and do the same for those in the third row.
  • Define the output of the plotly object which was named "line" in the previous step.
  • Render the shinydashboard using the ui and server that you just defined.