การสร้างแดชบอร์ดด้วย shinydashboard
Png Kee Seng
Researcher

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

notificationItem() คือ "success"
header <- dashboardHeader( ... dropdownMenu(type = "notifications",notificationItem("Sell alert",status = "danger"),notificationItem("Buy alert",status = "success"))) ...
status กล่องจะไม่มีสีstatus เป็น "info"solidHeader = TRUE... body <- dashboardBody(..., box("Stock name",title="Stock name title",width = 6,status = "info",solidHeader = TRUE)),...



colorclose ลดลง 2% จากเมื่อวานvalueBox() ด้วยสีแดงเพื่อแจ้งเตือน Sally
... body <- dashboardBody(...,valueBox("Close (%)", "-2%", width = 2,color = "red"),...) ...

?validStatuses และ ?validColorsshinydashboard มีธีมสีสำเร็จรูปให้เลือกใช้skin ใน dashboardPage()dashboardPage(skin = <color>)
สีที่รองรับมีดังนี้
"blue" (ค่าเริ่มต้น)"black""purple""green""red""yellow"ui <- dashboardPage(skin = "purple",
header, sidebar, body)
ui <- dashboardPage(skin = "black",
header, sidebar, body)


การสร้างแดชบอร์ดด้วย shinydashboard