shinythemes
See the documentation at http://rstudio.github.io/shinythemes/.
The shinythemes package provides some Bootstrap themes for use with Shiny. The themes are from from http://bootswatch.com/:
Using themes
Using the themes is simple. Use the theme
argument to bootstrapPage
, fluidPage
, navbarPage
, or fixedPage
. The value should be shinytheme("<theme>")
; for example, shinytheme("cerulean")
.
For example, a ui.R file might look something like this:
library(shinythemes)
navbarPage("United",
theme = shinytheme("cerulean"),
tabPanel("Plot", "Plot tab contents..."),
navbarMenu("More",
tabPanel("Summary", "Summary tab contents..."),
tabPanel("Table", "Table tab contents...")
)
)
An example single-file app might look like this:
library(shinythemes)
shinyApp(
ui = navbarPage("United",
theme = shinytheme("united"),
tabPanel("Plot", "Plot tab contents..."),
navbarMenu("More",
tabPanel("Summary", "Summary tab contents..."),
tabPanel("Table", "Table tab contents...")
)
),
server = function(input, output) { }
)