Shiny

Loading User input .Rdata on Shiny App

有些话、适合烂在心里 提交于 2020-01-01 18:21:18
问题 I am working on a Shiny app which needs to take a .Rdata file as input from the user and perform certain operations on it before producing an output. So basically, after the user chooses a file, I need to load the data and store its contents which is expected to be an R list object in a variable for further use. I tried many ways but I just can't load the .Rdata file or store it in a variable. Could someone please help? I know this question has been asked over SO in the past but the answers

Update sliderInput in Shiny reactively

送分小仙女□ 提交于 2020-01-01 17:27:10
问题 I am trying to change the values from a sliderInput dynamically. The difficulty now is that I want to change from a sliderInput with one value, to a sliderInput with a range, which seems not to work. The first actionbutton in the code below works, while the second does not what it is intended to do. Is the only possibility to switch to an uiOutput element? Code library(shiny) app <- shinyApp( ui = bootstrapPage( sliderInput("sld1", min = 0, max = 10, label = "y1", value = 5), actionButton(

Update sliderInput in Shiny reactively

你。 提交于 2020-01-01 17:27:02
问题 I am trying to change the values from a sliderInput dynamically. The difficulty now is that I want to change from a sliderInput with one value, to a sliderInput with a range, which seems not to work. The first actionbutton in the code below works, while the second does not what it is intended to do. Is the only possibility to switch to an uiOutput element? Code library(shiny) app <- shinyApp( ui = bootstrapPage( sliderInput("sld1", min = 0, max = 10, label = "y1", value = 5), actionButton(

Implementing tooltip for networkD3 app

霸气de小男生 提交于 2020-01-01 17:06:07
问题 I want to implement a tooltip in Shiny-hosted networkD3 plot similar to the ggvis function, e.g: require(ggvis); require(shiny) all_values = function(x){ "<a href='#'>Option 1</a><br/><a href='#'>Option 2</a>"} server = function(input, output, session) { observe({ ggvis(mtcars, ~disp, ~mpg) %>% layer_points() %>% add_tooltip(all_values, 'click') %>% bind_shiny('ggvis_plot', 'ggvis_ui') }) } ui = fluidPage( uiOutput("ggvis_ui"), ggvisOutput("ggvis_plot")) shinyApp(ui, server) Is there an

Dynamically colored sliderInput

≯℡__Kan透↙ 提交于 2020-01-01 14:27:21
问题 I have a question that is related to post How to color sliderbar (sliderInput)?. Is it possible to make the sliderInput change its color dependent on the chosen value? I would like to offer the user to input a value from 0 to 10. However, there is a recommended range from, say, 4 to 8. As a consequence, the slider color should be green if the user chooses a value between 4 and 8, but it should change to orange (or red) if a value outside the recommended range is chosen. Any help on

Dynamically colored sliderInput

我们两清 提交于 2020-01-01 14:24:03
问题 I have a question that is related to post How to color sliderbar (sliderInput)?. Is it possible to make the sliderInput change its color dependent on the chosen value? I would like to offer the user to input a value from 0 to 10. However, there is a recommended range from, say, 4 to 8. As a consequence, the slider color should be green if the user chooses a value between 4 and 8, but it should change to orange (or red) if a value outside the recommended range is chosen. Any help on

shiny: open new browser tab from within shiny app

时间秒杀一切 提交于 2020-01-01 12:01:08
问题 From within shiny I want to open a HTML page in a new browser tab. Here it is pointed out that I need JS for that task. Let's say I want to open the URL http://www.google.com in a new tab from within my shiny app. I am not familiar with JS yet and I do not know which code where to include and how to call it from within the shiny app. How can I go about it? 回答1: You shouldn't need anything more fancy than traditional, shiny-ified HTML: a("test", href="http://google.com", target="_blank") You

Create dynamic ggvis chart from uploaded file in shiny

家住魔仙堡 提交于 2020-01-01 11:55:13
问题 I am trying to use Shiny and ggvis to: 1) upload a data set 2) have the user select 2 columns (x, y) 3) return a ggvis plot displaying (x, y) from the uploaded data set I've tried editing the examples from the Shiny Interactivity page as well as the movie explorer example. However, no chart is displayed. I think my issue is around uploading the data set, but I don't know where to begin... Any suggestions? Note - I've also tried this using rCharts, but I run into similar problems where no

Create dynamic ggvis chart from uploaded file in shiny

十年热恋 提交于 2020-01-01 11:55:08
问题 I am trying to use Shiny and ggvis to: 1) upload a data set 2) have the user select 2 columns (x, y) 3) return a ggvis plot displaying (x, y) from the uploaded data set I've tried editing the examples from the Shiny Interactivity page as well as the movie explorer example. However, no chart is displayed. I think my issue is around uploading the data set, but I don't know where to begin... Any suggestions? Note - I've also tried this using rCharts, but I run into similar problems where no

R Shiny: Keep/retain values of reactive inputs after modifying selection

删除回忆录丶 提交于 2020-01-01 10:43:09
问题 I am trying to keep the user selected values in a dynamically generated selectInput after the user modifies a selection in another selectInput(multiple=T) option. Whenever I modify my selections, all the dynamically generated values are reset. For example: I initially select "A", "B", and "C" from the "Letters" selectInput, and then select "1"; "1", "2"; and "1", "2", "3" from the dynamically generated selectInput options generated by "A", "B", and "C". Initial Selections: Then I want to