ShinyBasé sur le framework Bootstrap :
offsetsidebar <- dashboardSidebar(
sidebarMenu(
menuItem("Menu item", tabName = "menu", icon = icon("calendar"),
menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")),
menuItem("Widgets", tabName = "widgets", icon = icon("th"))
)
)
body <- dashboardBody(
tabItems(
tabItem(tabName = "menu",
h2("Menu tab content")
),
tabItem(tabName = "dashboard",
h2("Dashboard tab content")
),
tabItem(tabName = "widgets",
h2("Widgets tab content")
)
)
)
# Put them together into a dashboardPage
ui <- dashboardPage(
dashboardHeader(title = "Simple tabs"),
sidebar,
body
)
server <- function(input, output) {
}
shinyApp(ui, server)shinytheme(): Customiser votre page dashboardPage(): Créer un tableau de bordsidebarLayout(): Page avec barre latéraletabPanel(): Ajouter des onglets