View source: R/set-background.R
setBackgroundImage | R Documentation |
Allow to change the background image of your shinyapp.
setBackgroundImage(src = NULL, shinydashboard = FALSE)
src |
Url or path to the image, if using local image,
the file must be in |
shinydashboard |
Set to |
if (interactive()) {
library(shiny)
library(shinyWidgets)
ui <- fluidPage(
tags$h2("Add a shiny app background image"),
setBackgroundImage(
src = "https://www.fillmurray.com/1920/1080"
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.