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

Exercise

Wireframing

Let's revisit the previous example of the dashboard for analysis results a soccer tournament. In the previous exercises, you have already set up the header and sidebar.

In particular, a button in the sidebar is defined by menuItem() and are contained within sidebarMenu(). You may have noticed these buttons do nothing at this point. You will now link these sidebar buttons to a different page in the body of the UI. This is still part of the wireframing process, where you are still deciding on the positions of each object. Each page within the body is defined by tabItem(), and must be contained within tabItems.

The shiny and shinydashboard packages have already been loaded for you. Furthermore, the dashboard header has already been stored as header.

Instructions 1/2

undefined XP
    1
    2
  • Link the menuItems() labeled as "matches", so that the "Match details" button in the sidebar is linked to a page in the body.