Créer des tableaux de bord avec shinydashboard
Png Kee Seng
Researcher

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

notificationItem() est "success"
header <- dashboardHeader( ... dropdownMenu(type = "notifications",notificationItem("Sell alert",status = "danger"),notificationItem("Buy alert",status = "success"))) ...
status vide donne une boîte sans couleurstatus à "info"solidHeader = TRUE... body <- dashboardBody(..., box("Stock name",title="Stock name title",width = 6,status = "info",solidHeader = TRUE)),...



colorclose a baissé de 2 % depuis hiervalueBox() en rouge pour avertir Sally
... body <- dashboardBody(...,valueBox("Close (%)", "-2%", width = 2,color = "red"),...) ...

?validStatuses et ?validColorsshinydashboardskin dans dashboardPage()dashboardPage(skin = <color>)
Couleurs possibles
"blue" (par défaut)"black""purple""green""red""yellow"ui <- dashboardPage(skin = "purple",
header, sidebar, body)
ui <- dashboardPage(skin = "black",
header, sidebar, body)


Créer des tableaux de bord avec shinydashboard