Shiny

Batch searching regex in Shiny DT datatables with spaces (not pipes)

╄→гoц情女王★ 提交于 2020-05-09 07:26:11
问题 Following on from this post can anyone please tell me if it's possible to implement a way to search an interactive Shiny DT datatable where keywords are separated by spaces and not pipes? Users of my apps will have lists of genes separated by spaces and adding pipes will defeat the point of making the app user friendly. Example code: ## example taken from https://rstudio.github.io/DT/007-search.html library(DT) mtcars2 = mtcars[, c(1:5, 9)] mtcars2$am = factor(mtcars$am, c(0, 1), c('automatic

Issues related to Shiny from RStudio

不问归期 提交于 2020-05-09 06:15:58
问题 I would like to insert a table and graph when selecting an option defined in Shiny from RStudio. When selecting the option "Select all properties" I would like to show Table1 and Graph1 on the same page. And if I press the option "Exclude properties that produce less than L and more than S" to present just Table2 and Graph2. I left an executable script below to show the table and figure I want to insert in my shiny code. I just want to display the table and figure when selecting one of the

rShiny textOutput and Paragraph on same line

谁说胖子不能爱 提交于 2020-05-08 07:43:07
问题 I'm trying to put a renderText element in the form of textOutput next to a header, but it keeps putting them on different lines. h1('This is the number:'), textOutput(output$number) This doesn't work either: p(h1('This is the number:'), textOutput(output$number)) Anyone have any work arounds? 回答1: You can do it using css ui=shinyUI(fluidPage( tags$head(tags$style(" #number{ display:inline }")), h1('This is the number:',style="display:inline"), textOutput("number") ) ) server=function(input

Tutorial of the Website "Awesome of COVID-19"

喜你入骨 提交于 2020-05-08 05:11:56
My Ph.D. project will focus on the application of spatial technology in Spatial Lifecourse Epidemiology. With the pandemic of COVID-19, I built up a website, "Awesome of COVID-19", which collected the related resources of COVID-19 researches. This article is the tutorial of this website. Snap spot of the website. Url of the Weibsite? Click it 1 The tutorial of the website I developed this website by docsite . The website consists of four pages including Home, Resources, Work, and Community. Besides, there are two buttons including language and search. Once you click the 'language' button, the

ckad练习题-Pod Design

*爱你&永不变心* 提交于 2020-05-06 23:42:02
Pod Design (20%) Defining and Querying Labels and Annotations Create three different Pods with the names frontend , backend and database that use the image nginx . Declare labels for those Pods as follows: frontend : env=prod , team=shiny backend : env=prod , team=legacy , app=v1.2.4 database : env=prod , team=storage Declare annotations for those Pods as follows: frontend : contact=John Doe , commit=2d3mg3 backend : contact=Mary Harris Render the list of all Pods and their labels. Use label selectors on the command line to query for all production Pods that belong to the teams shiny and

Shiny : How to modify reactive object

纵然是瞬间 提交于 2020-05-06 18:46:08
问题 I have a reactive object that i want to modify when the user click on the GO button. I tried this code and Per gives a great result. Now I want to do more than one modification considering the first one, so It seems like I should save RA_s every time I modify it. How can I handle with this problem ? Code shinyServer(function(input, output) { RA_s <- reactive({ read.csv("C:/alay/Desktop/RA.csv") }) Per <- reactive({ if(input$go == 0) return(RA_s()) else { c = RA_s() c[1] = rep(0,nrow(RA_s()))

Plot scatterplot on a map in Shiny

孤人 提交于 2020-05-04 10:52:12
问题 how do I plot my scatterplot on a map? I managed to plot my scatterplot, however I wanted it to be plotted on a map. I believe that an option is to use the leaflet package, since I have the Latitude and Longitude coordinates, but I don't know how to use it. Please, if you have other options feel free. Could you help me with this problem ?? The executable code is below. Thank you very much! library(shiny) library(ggplot2) library(rdist) library(geosphere) library(kableExtra) library(readxl)

Link selectInput with sliderInput in shiny

戏子无情 提交于 2020-05-04 05:32:46
问题 Friends, I would like my selectInput to be linked to the number of clusters that appear in my output table. In other words, it appears divided into 5 clusters. In selectInput I would like it to show as follows: Select the cluster 1 2 3 4 5 That is, my selectinput will depend on my sliderInput. How can I do this? My executable code is below: library(shiny) library(ggplot2) library(rdist) library(geosphere) library(kableExtra) library(readxl) library(tidyverse) library(DT) #database df<

Link selectInput with sliderInput in shiny

こ雲淡風輕ζ 提交于 2020-05-04 05:29:40
问题 Friends, I would like my selectInput to be linked to the number of clusters that appear in my output table. In other words, it appears divided into 5 clusters. In selectInput I would like it to show as follows: Select the cluster 1 2 3 4 5 That is, my selectinput will depend on my sliderInput. How can I do this? My executable code is below: library(shiny) library(ggplot2) library(rdist) library(geosphere) library(kableExtra) library(readxl) library(tidyverse) library(DT) #database df<

Shiny - dynamically generated inputs

旧城冷巷雨未停 提交于 2020-04-30 09:34:44
问题 In my shiny code i am generating inputs dynamically and i am trying to make the observe() to be triggered by any change in those inputs. I found this link Shiny - observe() triggered by dynamicaly generated inputs which was very useful but didn't work with all kind of inputs. I added to the code in the link extra inputs That's the code: library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(title = ""), dashboardSidebar( ), dashboardBody( tags$script("$(document).on(