ComeçarComece de graça

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.

Este exercício faz parte do curso

Building Dashboards with shinydashboard

Ver curso

Instruções do exercício

  • 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.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# 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)
Editar e executar o código