Shiny

ternary plot of ggtern not working in shiny

*爱你&永不变心* 提交于 2020-06-02 03:35:14
问题 I want to use the output of ggtern() in a shiny app. However it seems to fail due to some constraints. This is what it should look like: This is the actual shiny output: See here for a reproducible example: library(shiny) library(ggtern) ui <- fluidPage( mainPanel( plotOutput("ggtern") ) ) server <- function(input, output) { output$ggtern <- renderPlot({ ggtern(data.frame(x=10, y=30, z=60), aes(x, y, z)) + geom_point() }) } shinyApp(ui = ui, server = server) Do I overlook something? 回答1:

ObserveEvent issues in shiny modules

Deadly 提交于 2020-06-01 07:39:06
问题 Hoping the everyone is doing good in these tough times. In my demo app the observeEvent when run from the module server side updates the numeric value instantly even when I am using ignoreInit = TRUE . This argument is working fine in Shiny apps without the shiny modules. I ran into a this trivial problem while using observeEvent from module server which I am not understanding why? Can anyone explain the reason for such differential behavior in Shiny apps? Below is my Demo code library(shiny)

Display table and recompute one column based on sliders

别等时光非礼了梦想. 提交于 2020-06-01 07:32:25
问题 I want to create a small shiny app to explore a scoring function that I am writing for a set of data observations. This is my first shiny app so bear with me. What I want to show is the data table where one column is computed by a function (let's say f(x) = x^2 + y) where x is another (numeric) column in the table and y should be adjustable with a slider in the sidebar. I want to make the table reactive, so that as soon as the slider is adjusted, the content that is displayed will be updated.

R package dependency issue in building docker image for shiny app

大兔子大兔子 提交于 2020-06-01 05:13:26
问题 I'm trying to build a docker image for my shiny app. My docker image is 'successfully' built, but cannot be started on localhost. Checking the logs in image building process, I saw error messages like below: ERROR: dependency ‘sf’ is not available for package ‘leafpop’ * removing ‘/usr/local/lib/R/site-library/leafpop’ .......... 1: In install.packages(c("remotes", "shiny", "shinythemes", "shinydashboard", :> installation of package ‘units’ had non-zero exit status 2: In install.packages(c(

Create shiny app with sankey diagram that reacts to selectinput

喜夏-厌秋 提交于 2020-06-01 03:16:14
问题 I'm trying to create a dashboard with a Sankey diagram and a selectInput that lets the end user choose filter the source column. I'm having trouble trying to figure out how to use the reactive expressions to filter the data. It's sort of complex because it's not just one step of reading the data in as it has to be preprocessed. I've tried putting the reactive filter at the end but it isn't working, as you'll see below. I tried also making each step reactive but that was a mess that certainly

Create shiny app with sankey diagram that reacts to selectinput

馋奶兔 提交于 2020-06-01 03:14:17
问题 I'm trying to create a dashboard with a Sankey diagram and a selectInput that lets the end user choose filter the source column. I'm having trouble trying to figure out how to use the reactive expressions to filter the data. It's sort of complex because it's not just one step of reading the data in as it has to be preprocessed. I've tried putting the reactive filter at the end but it isn't working, as you'll see below. I tried also making each step reactive but that was a mess that certainly

If statement does not work 2 times in a row in a shiny app

守給你的承諾、 提交于 2020-05-31 22:33:04
问题 I have a shiny app which displays 3 tabs. In the Documents tab there is a table. When the user clicks on the setosa of the 1st row he is moving to the View tab (visible only when click happens) and sees a table. When the user clicks on the setosa of the 2nd row he is moving to the View tab and sees another table. Also those tables must be visible only on View tab. The app seems to work fine but if I click on the 1st row setosa ,move to the View tab, return to the Documents tab again and try

If statement does not work 2 times in a row in a shiny app

故事扮演 提交于 2020-05-31 22:32:10
问题 I have a shiny app which displays 3 tabs. In the Documents tab there is a table. When the user clicks on the setosa of the 1st row he is moving to the View tab (visible only when click happens) and sees a table. When the user clicks on the setosa of the 2nd row he is moving to the View tab and sees another table. Also those tables must be visible only on View tab. The app seems to work fine but if I click on the 1st row setosa ,move to the View tab, return to the Documents tab again and try

Error time_trans works with objects of class posixct only in R

青春壹個敷衍的年華 提交于 2020-05-31 10:12:20
问题 I got the Error: Invalid input: time_trans works with objects of class POSIXct only when I run the program in shiny. And this is my code in shiny : library(ggplot2) library(Cairo) # For nicer ggplot2 output when deployed on Linux library(shiny) ui <- fluidPage( fluidRow( column(width = 4, class = "well", h4("Brush and double-click to zoom"), plotOutput("plot1", height = 300, dblclick = "plot1_dblclick", brush = brushOpts( id = "plot1_brush", resetOnNew = TRUE ))), column(width = 6, plotOutput

Adjust new features in shiny

浪尽此生 提交于 2020-05-31 04:03:11
问题 The executable code below is generating clusters and showing on the maps made by the leaflet (I inserted a figure of the visual structure of my shiny below). However, I would like help with my Filter2, which was just to show the properties inserted in the cluster selected in Filter1. However, for example, considering sliderInput as 3. Cluster 1 has 3 properties, but is showing the selection of 7 properties (Error below). Therefore, I would like you to help me adjust my Filter2 so that I can