첫 번째 (빈) 대시보드
이 연습 문제에서는 특정 축구 세계 대회를 나타내는 데이터를 사용해 대시보드를 만듭니다. 이제부터는 이를 "global soccer tournament"라고 부르겠습니다. 이를 위해, 필요에 맞게 대시보드를 커스터마이즈할 수 있도록 shinydashboard를 사용하기로 했어요. 원하는 요소를 대시보드에 넣기 전에, 먼저 빈 shinydashboard를 만들어 뼈대부터 구성해 보겠습니다.
이 연습 문제에서는 shiny와 shinydashboard 라이브러리가 이미 로드되어 있습니다.
이 연습은 강의의 일부입니다
shinydashboard로 대시보드 만들기
연습 안내
- shinydashboard의 제목을 "Global soccer tournament"로 설정하세요.
- shinydashboard에 빈 사이드바를 설정하세요.
- shinydashboard에 빈 본문을 설정하세요.
- 헤더, 사이드바, 본문을 합쳐 shinydashboard의 UI를 구성하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# 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)