Shiny

re-hide conditional shiny output once it has been rendered

↘锁芯ラ 提交于 2020-02-04 22:59:11
问题 I need some help as to how to re-hide a shiny output once it has been rendered. Below I have provided a reproducible example to explain my question. I want text 2.2 to only be shown if Option 1 and B are selected, and text 1 to only show when option 2 is selected. I have done this by including conditionalPanel() with the conditions set accordingly. This works, however, once the text has been rendered this text will not disappear when the input changes. I want text 2.2 to disappear if the user

Shiny Plot Height behaving different on different desktop

落爺英雄遲暮 提交于 2020-02-04 05:19:14
问题 I am trying to make a custom UI in which i have to plot 4 plots inside each tab, but i am getting scroll on plot rendering and when i add height as 240 scrollbar disappear and it works for the same size desktop but it behaves different on different size of desktop and i get scrollbar again. motive is to fit the plots in screen without scrollbar, also i would like to get a feedback that am i creating UI in a right way Thanks UI navbarPage("NarBar", tabPanel("Tab1", column(12, column(4, column

Is it possible to select a graphviz node in a shiny app (renderGrViz) and then link to other information?

送分小仙女□ 提交于 2020-02-03 09:11:07
问题 I would like to add a feature (a popover, or some other function?) to the central graphviz nodes in my shiny app that, when selected by mouse click, they display information (e.g. the info column in the centre_nodes file). Given that there's a tooltip property to these nodes, I think/hope the computer must 'see' them but I haven't figured out a way to connect the two and establish this behaviour... I've explored a variety of methods (e.g. reactR, html tags, hover.css, shinyBS, d3, pipeR, XML,

Is it possible to select a graphviz node in a shiny app (renderGrViz) and then link to other information?

情到浓时终转凉″ 提交于 2020-02-03 09:09:43
问题 I would like to add a feature (a popover, or some other function?) to the central graphviz nodes in my shiny app that, when selected by mouse click, they display information (e.g. the info column in the centre_nodes file). Given that there's a tooltip property to these nodes, I think/hope the computer must 'see' them but I haven't figured out a way to connect the two and establish this behaviour... I've explored a variety of methods (e.g. reactR, html tags, hover.css, shinyBS, d3, pipeR, XML,

Is it possible to select a graphviz node in a shiny app (renderGrViz) and then link to other information?

耗尽温柔 提交于 2020-02-03 09:09:10
问题 I would like to add a feature (a popover, or some other function?) to the central graphviz nodes in my shiny app that, when selected by mouse click, they display information (e.g. the info column in the centre_nodes file). Given that there's a tooltip property to these nodes, I think/hope the computer must 'see' them but I haven't figured out a way to connect the two and establish this behaviour... I've explored a variety of methods (e.g. reactR, html tags, hover.css, shinyBS, d3, pipeR, XML,

ReactiveTimer with if statement R-Shiny

荒凉一梦 提交于 2020-02-02 16:23:13
问题 I've made a R-Shiny app which runs on a linux server. All the data which I need is coming from a website using API and the library(coinmarketcapr). The app retrieves the latest data every 5 minutes and saves it in a csv-file on the server. But now I have the problem that every time I reload the page, the app retrieves the new data and I always have duplicate values in my time series. I work with the ReactiveTimer, set to 5 minutes. Is there a possibility that the ReactiveTimer checks the time

Place elements in `shiny` app in order they resize for mobile and desktop monitors

穿精又带淫゛_ 提交于 2020-02-02 13:13:14
问题 I have a shiny app with a title , one plot , some description and an actionButton . I want the elements to be aligned as follows: title on top ; description and actionButton at the bottom ; plot in between resizing according to the monitor resolution. My app.R looks as follows: library(shiny) text <- list( "one", "one\ntwo", "one\ntwo\nthree", "one\ntwo\nthree\nfour" ) ui <- fluidPage( titlePanel("title"), fluidRow(plotOutput("plot")), fluidRow(style = "position:absolute;bottom:20px;left:20px

Place elements in `shiny` app in order they resize for mobile and desktop monitors

三世轮回 提交于 2020-02-02 13:12:03
问题 I have a shiny app with a title , one plot , some description and an actionButton . I want the elements to be aligned as follows: title on top ; description and actionButton at the bottom ; plot in between resizing according to the monitor resolution. My app.R looks as follows: library(shiny) text <- list( "one", "one\ntwo", "one\ntwo\nthree", "one\ntwo\nthree\nfour" ) ui <- fluidPage( titlePanel("title"), fluidRow(plotOutput("plot")), fluidRow(style = "position:absolute;bottom:20px;left:20px

Displaying datatable column values in dollars in Shiny r

独自空忆成欢 提交于 2020-02-02 10:14:27
问题 I have a datatable where one of the columns should be expressed in dollars and some as percentages. I've been looking around and I'm still not sure how to do it - seems like it would be easy? The trickier part is I have another data table where only certain entries need to be expressed as dollars (i.e. not whole rows or whole columns) - is there a way to handle this? 回答1: Imagine your datatable (myData) is 2 columns by 10 rows. You want the second row to be in dollars: myData[,2]<-sapply

Distorted spacing between div elements after sorting with jqui_sortable

孤街浪徒 提交于 2020-02-01 05:40:29
问题 While building a very nice additional functionality into my shiny app where the user can reorganize the plots inside the page, I ran into 1 problem. I noticed that the spacing between the div elements that are being relocated (sorted), changes while doing so, resulting in a misalignment of the plots afterwards. I have tried to adjust margin values to nothing, 0 or a certain amount of pixels, but that doesn't seem to solve this. The app that I made to test / illustrate the issue is posted