CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Building Dashboards with shinydashboard

Afficher le cours

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.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de 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)
Modifier et exécuter le code