Get startedGet started for free

Your first (empty) dashboard

In this exercise, you will be building a dashboard using data from a certain soccer world tournament which will be referred to "global soccer tournament" from here on. To this end, you decide that a shinydashboard will help you customize a dashboard based on your needs. Before you insert your desired elements in the dashboard, you will first construct an empty shinydashboard -- which will be like a skeleton of sorts.

The shiny and shinydashboard libraries have already been loaded for you in this exercise.

This exercise is part of the course

Building Dashboards with shinydashboard

View Course

Exercise instructions

  • Set the title of the shinydashboard to "Global soccer tournament".
  • Set up an empty side bar in the shinydashboard.
  • Set up an empty body for the shinydashboard.
  • Set up the UI of the shinydashboard by putting the header, side bar and body together.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Set the title of the shinydashboard
header <- ___
# Set up an empty side bar
sidebar <- ___
# Set up an empty body
body <- ___
# Set up the shinydashboard UI
ui <- ___
server <- function(input, output) {
}

shinyApp(ui, server)
Edit and Run Code