Dashboards bouwen met shinydashboard
Png Kee Seng
Researcher

status-eigenschapstatus<object>(status = <status>, ...)

notificationItem() is "success"
header <- dashboardHeader( ... dropdownMenu(type = "notifications",notificationItem("Sell alert",status = "danger"),notificationItem("Buy alert",status = "success"))) ...
status leeg laten geeft een ongekleurde boxstatus op "info"solidHeader = TRUE... body <- dashboardBody(..., box("Stock name",title="Stock name title",width = 6,status = "info",solidHeader = TRUE)),...



color zettenclose-prijs sinds gisteren 2% daaldevalueBox() rood om Sally te waarschuwen
... body <- dashboardBody(...,valueBox("Close (%)", "-2%", width = 2,color = "red"),...) ...

?validStatuses en ?validColorsshinydashboard heeft vooraf gedefinieerde skinsskin in dashboardPage()dashboardPage(skin = <color>)
Dit zijn de mogelijke kleuren
"blue" (standaard)"black""purple""green""red""yellow"ui <- dashboardPage(skin = "purple",
header, sidebar, body)
ui <- dashboardPage(skin = "black",
header, sidebar, body)


Dashboards bouwen met shinydashboard