MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Building Dashboards with shinydashboard

Lihat Kursus

Petunjuk latihan

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

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# 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 dan Jalankan Kode