Shiny

Customize bubble map with highcharter

纵饮孤独 提交于 2020-05-15 09:27:05
问题 The bounty expires in 2 days . Answers to this question are eligible for a +50 reputation bounty. Damien Dotta is looking for a more detailed answer to this question. Could someone help me to implement this excellent jsfiddle in a "shiny" application with the highcharter package ? https://jsfiddle.net/BlackLabel/nr1y47a9/ I started writing something like this but there are still some problems ... Here's the result : https://pasteboard.co/J7qWN7v.png library(highcharter) library(httr) library

In shiny + leaflet, setview is updated every time render is executed. I want to prevent this

﹥>﹥吖頭↗ 提交于 2020-05-15 08:13:50
问题 I create a map app using shiny and leaflet. It projects a map and some shape files. The shape file has area values. I want to set whether to display the shape file or not based on the area value. Specifically, the sliderInput function is used. Although the display of the shape file is restricted using the sliderInput function, The setview is reset every time the number is changed by sliderInput. Instead of running setview every time, I want you to run setview where you are. What should I do?

In shiny + leaflet, setview is updated every time render is executed. I want to prevent this

混江龙づ霸主 提交于 2020-05-15 08:13:05
问题 I create a map app using shiny and leaflet. It projects a map and some shape files. The shape file has area values. I want to set whether to display the shape file or not based on the area value. Specifically, the sliderInput function is used. Although the display of the shape file is restricted using the sliderInput function, The setview is reset every time the number is changed by sliderInput. Instead of running setview every time, I want you to run setview where you are. What should I do?

change colour of selectizeInput options in R Shiny

血红的双手。 提交于 2020-05-15 08:03:33
问题 I would like to change the colour of each individual option of the selectizeInput menu in my Shiny app. In the following example code below I am able to change the colour to blue for all the menu options but how can I change it for each individual option? e.g. make "a" red, "b" blue, "c" green etc. Thanks very much! shinyApp( ui = shinyUI(fluidPage( tags$head( tags$style(HTML(" .item { background: #2196f3 !important; color: white !important; } .selectize-dropdown-content .active { background:

How to display a map only when a filter is selected

放肆的年华 提交于 2020-05-15 07:54:26
问题 Friends, This code generates 2 maps. The first contains all clusters, while the second only displays the currently selected cluster. I would like this second map to appear only when a cluster is selected. library(shiny) library(ggplot2) library(rdist) library(geosphere) library(shinythemes) library(leaflet) function.cl<-function(df,k,Filter1,Filter2){ #database df df<-structure(list(Properties = c(1,2,3,4,5,6,7), Latitude = c(-23.8, -23.8, -23.9, -23.9, -23.9,-23.4,-23.5), Longitude = c(-49.6

R shiny widgetFunc() warning messages with eventReactive(warning 1) and renderDataTable (warning 2)

♀尐吖头ヾ 提交于 2020-05-15 03:53:06
问题 I'm writing a shiny app and it was working perfectly fine and all of a sudden I am getting two warning messages. I have gone back to previous copies that ran fine and they are now showing the same error messages, so I am really confused.My code still runs and shows accurate results on the results tab of my shiny dashboard, but I want to track down the warning messages. I debug and the first warning goes away with the rendDataTable and the second warning comes up when I click a tab on my

R shiny widgetFunc() warning messages with eventReactive(warning 1) and renderDataTable (warning 2)

社会主义新天地 提交于 2020-05-15 03:52:05
问题 I'm writing a shiny app and it was working perfectly fine and all of a sudden I am getting two warning messages. I have gone back to previous copies that ran fine and they are now showing the same error messages, so I am really confused.My code still runs and shows accurate results on the results tab of my shiny dashboard, but I want to track down the warning messages. I debug and the first warning goes away with the rendDataTable and the second warning comes up when I click a tab on my

Jsoneditoutput is not displayed when given as reactive value in a shiny app

前提是你 提交于 2020-05-14 08:51:18
问题 I have a shiny app which takes a csv file as input and after clicking 'submit' should display a jsoneditOutput . Besides this I have used a reset button which when clicked should reset the file input. But when I click submit I get: Error in read.table: 'file' must be a character string or connection . library(shiny) library(shinyjs) library(tidyverse) library(listviewer) library(jsonlite) library(SACCR) ui <- fluidPage( sidebarLayout( sidebarPanel( useShinyjs(), fileInput('inFile', 'Choose

Jsoneditoutput is not displayed when given as reactive value in a shiny app

萝らか妹 提交于 2020-05-14 08:48:27
问题 I have a shiny app which takes a csv file as input and after clicking 'submit' should display a jsoneditOutput . Besides this I have used a reset button which when clicked should reset the file input. But when I click submit I get: Error in read.table: 'file' must be a character string or connection . library(shiny) library(shinyjs) library(tidyverse) library(listviewer) library(jsonlite) library(SACCR) ui <- fluidPage( sidebarLayout( sidebarPanel( useShinyjs(), fileInput('inFile', 'Choose

Shiny popover from shinyBS displays every second time only

守給你的承諾、 提交于 2020-05-13 18:50:42
问题 The dynamic popover from shinyBS only turns up on every second selection. library(shiny) library(shinyBS) ui <- fluidPage( sidebarLayout( sidebarPanel( selectInput("poppy", "Think!", c("A", "B", "C", "D")), bsButton("dummy", "dummy")), ## required, dummy mainPanel( helpText("Note that when you select from the box, popover turns up every second time only!") ))) server <- function(input, output, session) { observe({ poppy = paste("You selected ", input$poppy) addPopover(session, "poppy", "Every