我想在我闪亮的仪表板应用程序中更改背景。我在互联网功能 setBackgroundImage ( https://rdrr.io/cran/shinyWidgets/man/setBackgroundImage.html ) 中受伤。问题是我不知道我是否应该将该功能放在我的应用程序中。例如是经典应用程序,而不是仪表板。
library(shiny)
library(shinydashboard)
library(shinyWidgets)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
setBackgroundImage(src = "http://wallpics4k.com/wp-content/uploads/2014/07/470318.jpg")
)
)
server <- function(input, output) {}
shinyApp(ui, server)
Run Code Online (Sandbox Code Playgroud)
也可以将传单地图作为背景吗?
我的闪亮应用程序我有几个pickerInput元素.默认情况下,未选择任何内容.
pickerInput(
inputId = "pickerInput1",
label = NULL,
choices = c("Yes", "No"),
options = list(
`actions-box` = TRUE,
size = 12,
`selected-text-format` = "count > 3"
),
multiple = TRUE
)
Run Code Online (Sandbox Code Playgroud)
问题是我不知道如何在点击特殊按钮后清除所有这些(转到默认值).不幸的是我propobly不知道如何使用updatePickerInput.我试过了:
observeEvent(input$Clear_FilterButton, {
updatePickerInput(session, "pickerInput1", selected = NULL)
})
Run Code Online (Sandbox Code Playgroud)
但它不起作用:(任何想法我做错了什么?
您知道如何从R的传单地图中删除国家/地区名称吗?
leaflet(quakes) %>% addTiles()
Run Code Online (Sandbox Code Playgroud)
我想要清晰的地图,没有文字