Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setBackgroundImage

Custom background image for your shinyapp


Description

Allow to change the background image of your shinyapp.

Usage

setBackgroundImage(src = NULL, shinydashboard = FALSE)

Arguments

src

Url or path to the image, if using local image, the file must be in www/ directory and the path not contain www/.

shinydashboard

Set to TRUE if in a shinydasboard application.

Examples

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)

}

shinyWidgets

Custom Inputs Widgets for Shiny

v0.6.0
GPL-3
Authors
Victor Perrier [aut, cre, cph], Fanny Meyer [aut], David Granjon [aut], Ian Fellows [ctb] (Methods for mutating vertical tabs & updateMultiInput), Wil Davis [ctb] (numericRangeInput function), Spencer Matthews [ctb] (autoNumeric methods), JavaScript and CSS libraries authors [ctb, cph] (All authors are listed in LICENSE.md)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.