Building Dashboards with shinydashboard
Png Kee Seng
Researcher
status
propertystatus
argument<object>(status = <status>, ...)
notificationItem()
is "success"
header <- dashboardHeader( ... dropdownMenu(type = "notifications",
notificationItem("Sell alert",
status = "danger"
),
notificationItem("Buy alert",
status = "success"
)
)) ...
status
untouched means an uncolored boxstatus
to "info"
solidHeader = TRUE
... body <- dashboardBody(..., box("Stock name",
title="Stock name title",
width = 6,
status = "info",
solidHeader = TRUE)),
...
color
close
price has fallen by 2% since yesterdayvalueBox()
with a red coloration to warn Sally... body <- dashboardBody(...,
valueBox("Close (%)", "-2%", width = 2,
color = "red"
),
...) ...
?validStatuses
and ?validColors
shinydashboard
skin
argument in dashboardPage()
dashboardPage(skin = <color>)
These are the possible colors
"blue"
(default)"black"
"purple"
"green"
"red"
"yellow"
ui <- dashboardPage(skin = "purple",
header, sidebar, body)
ui <- dashboardPage(skin = "black",
header, sidebar, body)
Building Dashboards with shinydashboard