Aan de slagGa gratis aan de slag

Header and side bar settings

Suppose you are working for an apparel company. Since a global soccer tournament has just concluded, your company wants to produce football apparel. To catch the attention of potential customers, the company needs to be in touch with the fan base.

You have been tasked to create a dashboard to help the company make better design decisions, based on the following:

  1. Some details for each match
  2. Total number of goals scored for each team
  3. Total number of yellow/red cards given to each team

In the exercise, the data has been stored as a dplyr data frame called soccer. The tidyverse, shinydashboard and shiny libraries have also been loaded.

Good luck!

Deze oefening maakt deel uit van de cursus

Building Dashboards with shinydashboard

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Set the title as "Soccer tournament"
header <- dashboardHeader(___)
Code bewerken en uitvoeren