Xây dựng Dashboard với shinydashboard
Png Kee Seng
Researcher

statusstatus<object>(status = <status>, ...)

notificationItem() mặc định là "success"
header <- dashboardHeader( ... dropdownMenu(type = "notifications",notificationItem("Sell alert",status = "danger"),notificationItem("Buy alert",status = "success"))) ...
status sẽ cho hộp không màustatus thành "info"solidHeader = TRUE... body <- dashboardBody(..., box("Stock name",title="Stock name title",width = 6,status = "info",solidHeader = TRUE)),...



colorclose giảm 2% so với hôm quavalueBox() màu đỏ để cảnh báo Sally
... body <- dashboardBody(...,valueBox("Close (%)", "-2%", width = 2,color = "red"),...) ...

?validStatuses và ?validColorsshinydashboard có sẵn các giao diện (skin)skin trong dashboardPage()dashboardPage(skin = <color>)
Các màu có thể dùng
"blue" (mặc định)"black""purple""green""red""yellow"ui <- dashboardPage(skin = "purple",
header, sidebar, body)
ui <- dashboardPage(skin = "black",
header, sidebar, body)


Xây dựng Dashboard với shinydashboard