Shiny

Shiny: insert/remove UI, individually and globally

喜夏-厌秋 提交于 2020-06-29 03:41:59
问题 The following shiny code allows us to insert and remove UI individually. The question about removing individually the UI elements was answered here. Then I wanted to delete all inserted UI in a global manner. And I found a useful answer here. So there are two actions of deletion, you can see them in the code with the comments Individual deletion: it will delete the nth UI added. Global deletion: the idea is to "reinitialize" the app. For my app, I will just use the action of changing tabs to

Shiny: insert/remove UI, individually and globally

前提是你 提交于 2020-06-29 03:41:16
问题 The following shiny code allows us to insert and remove UI individually. The question about removing individually the UI elements was answered here. Then I wanted to delete all inserted UI in a global manner. And I found a useful answer here. So there are two actions of deletion, you can see them in the code with the comments Individual deletion: it will delete the nth UI added. Global deletion: the idea is to "reinitialize" the app. For my app, I will just use the action of changing tabs to

Insert bspopover in Shiny

纵然是瞬间 提交于 2020-06-28 03:45:13
问题 I would like to insert a bspopover next to the text: "Shapefile Import". For the Filter options I was able to insert as you can see in the code below, however for fileImput no. The executable code is below. can anybody help me? Thank you! library(shinyBS) library(shiny) popoverTempate <- '<div class="popover popover-lg" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' DES_filter1<-paste("Text text text text text text.", sep = "

Insert bspopover in Shiny

醉酒当歌 提交于 2020-06-28 03:45:01
问题 I would like to insert a bspopover next to the text: "Shapefile Import". For the Filter options I was able to insert as you can see in the code below, however for fileImput no. The executable code is below. can anybody help me? Thank you! library(shinyBS) library(shiny) popoverTempate <- '<div class="popover popover-lg" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' DES_filter1<-paste("Text text text text text text.", sep = "

How to create a highcharter event function to create a “dropdown function” in Shiny R

让人想犯罪 __ 提交于 2020-06-26 07:58:37
问题 I'm building a shiny app and one of the things I want to accomplish is to create a dropdown menu. I want to plot the labour variable as a function of the year variable for the different levels. See below for a sample dataframe: year level_2 level_3 labour 1 2013 10 101 1 2 2014 10 101 5 3 2015 10 101 10 4 2016 10 101 20 5 2017 10 101 25 6 2013 11 111 5 7 2014 11 111 10 8 2015 11 111 20 9 2016 11 111 25 10 2017 11 111 30 11 2013 10 102 2 12 2014 10 102 6 13 2015 10 102 11 14 2016 10 102 21 15

How to create a highcharter event function to create a “dropdown function” in Shiny R

╄→гoц情女王★ 提交于 2020-06-26 07:57:09
问题 I'm building a shiny app and one of the things I want to accomplish is to create a dropdown menu. I want to plot the labour variable as a function of the year variable for the different levels. See below for a sample dataframe: year level_2 level_3 labour 1 2013 10 101 1 2 2014 10 101 5 3 2015 10 101 10 4 2016 10 101 20 5 2017 10 101 25 6 2013 11 111 5 7 2014 11 111 10 8 2015 11 111 20 9 2016 11 111 25 10 2017 11 111 30 11 2013 10 102 2 12 2014 10 102 6 13 2015 10 102 11 14 2016 10 102 21 15

Deploy shiny app in rocker/shiny docker

一个人想着一个人 提交于 2020-06-25 03:30:28
问题 Well, I'm new at Docker and I need to implement a Shiny app in a Docker Container. I have the image from https://hub.docker.com/r/rocker/shiny/, that includes Shiny Server , but I don't know how to deploy my app in the server. I want to deploy the app in the server, install the required packages for my app into the Docker, save the changes and export the image/container. As I said, I'm new at Docker and I don't know how it really works. Any idea? 回答1: The link(https://hub.docker.com/r/rocker

Deploy shiny app in rocker/shiny docker

断了今生、忘了曾经 提交于 2020-06-25 03:30:08
问题 Well, I'm new at Docker and I need to implement a Shiny app in a Docker Container. I have the image from https://hub.docker.com/r/rocker/shiny/, that includes Shiny Server , but I don't know how to deploy my app in the server. I want to deploy the app in the server, install the required packages for my app into the Docker, save the changes and export the image/container. As I said, I'm new at Docker and I don't know how it really works. Any idea? 回答1: The link(https://hub.docker.com/r/rocker

Display LaTeX equations in a shiny dashboard app in R

岁酱吖の 提交于 2020-06-25 03:25:37
问题 I would like to display an Rmd file with LaTeX equations in my shiny dashboard app. I've run into problems using includeMarkdown() and includeHTML() . Here is a simplified app of what I'm trying to achieve. Here is my app.R: library(shinydashboard) ui <- dashboardPage( dashboardHeader(title='My test application'), dashboardSidebar( sidebarMenu( menuItem("Theory", tabName = "theory", icon = icon("book")) ) ), dashboardBody( tabItems( tabItem(tabName="theory", includeMarkdown("Theory.Rmd")

Hover image in plotly r chart in shiny app

丶灬走出姿态 提交于 2020-06-24 12:40:38
问题 Does anyone here have an example of showing an image when hovered on a plot or any package which can do this? I have tried something but it will show url only but not the image.I know this code is just encasing the URL. How can I build a div to show the image. library(shiny) library(shinydashboard) library(DT) library(dplyr) library(plotly) # Data ------------------------------------------------------------------ dt <- data.frame(fruits = c("apple","banana","oranges"), rank = c(11, 22, 33),