Shiny

Export R Shiny Page to PDF

99封情书 提交于 2020-07-28 06:03:47
问题 I have a large Shiny application that has a number of prompts, then generates tables and plot based on those inputs. I don't use rmarkdown or knitr or anything to format the output. I just use the standard Shiny elements (sidebarPanel, mainPanel, etc.). For the plots and tables I use the standard reactive renderPlot and renderTable objects. I'm looking for an easy way to have a button called "Export to PDF" that exports the elements on the page to a PDF document. I've looked into using knitr

Export R Shiny Page to PDF

旧城冷巷雨未停 提交于 2020-07-28 06:03:05
问题 I have a large Shiny application that has a number of prompts, then generates tables and plot based on those inputs. I don't use rmarkdown or knitr or anything to format the output. I just use the standard Shiny elements (sidebarPanel, mainPanel, etc.). For the plots and tables I use the standard reactive renderPlot and renderTable objects. I'm looking for an easy way to have a button called "Export to PDF" that exports the elements on the page to a PDF document. I've looked into using knitr

In Shiny, avoid overlap of selectInput dropdown with action button underneath it

夙愿已清 提交于 2020-07-23 09:03:41
问题 This seems like a very simple question, but I have searched and searched! I am using selectize to select multiple items from a list in a selectInput dropdown menu. Below it I have a Submit button to perform some action on the list. As you add multiple entries, the selectInput box grows, and the button dynamically moves down the sidebar, but when you open the dropdown menu to see the list of options, the Submit button is hidden. I would like the button to dynamically jump down and stay visible

In Shiny, avoid overlap of selectInput dropdown with action button underneath it

Deadly 提交于 2020-07-23 09:01:38
问题 This seems like a very simple question, but I have searched and searched! I am using selectize to select multiple items from a list in a selectInput dropdown menu. Below it I have a Submit button to perform some action on the list. As you add multiple entries, the selectInput box grows, and the button dynamically moves down the sidebar, but when you open the dropdown menu to see the list of options, the Submit button is hidden. I would like the button to dynamically jump down and stay visible

In Shiny, avoid overlap of selectInput dropdown with action button underneath it

独自空忆成欢 提交于 2020-07-23 09:00:40
问题 This seems like a very simple question, but I have searched and searched! I am using selectize to select multiple items from a list in a selectInput dropdown menu. Below it I have a Submit button to perform some action on the list. As you add multiple entries, the selectInput box grows, and the button dynamically moves down the sidebar, but when you open the dropdown menu to see the list of options, the Submit button is hidden. I would like the button to dynamically jump down and stay visible

Render Dynamic Tabs with Dynamic Plots from loop in Shiny

℡╲_俬逩灬. 提交于 2020-07-23 06:55:27
问题 I'm trying to populate dynamically generated tabs with plots made from a loop but can't get the tabs to populate with all of the plots generated in the loop. shinyUI(pageWithSidebar( headerPanel("Dynamic number of plots"), sidebarPanel( ), mainPanel( # This is the dynamic UI for the plots uiOutput("IndividualPlots") ) )) server <- function(input, output) { output$IndividualPlots <- renderUI({ if (is.null(input$data_cqt0)) { return() } plot_content() shiny:::buildTabset( id = "t", lapply(1

Render Dynamic Tabs with Dynamic Plots from loop in Shiny

﹥>﹥吖頭↗ 提交于 2020-07-23 06:54:25
问题 I'm trying to populate dynamically generated tabs with plots made from a loop but can't get the tabs to populate with all of the plots generated in the loop. shinyUI(pageWithSidebar( headerPanel("Dynamic number of plots"), sidebarPanel( ), mainPanel( # This is the dynamic UI for the plots uiOutput("IndividualPlots") ) )) server <- function(input, output) { output$IndividualPlots <- renderUI({ if (is.null(input$data_cqt0)) { return() } plot_content() shiny:::buildTabset( id = "t", lapply(1

Render Dynamic Tabs with Dynamic Plots from loop in Shiny

时光怂恿深爱的人放手 提交于 2020-07-23 06:53:15
问题 I'm trying to populate dynamically generated tabs with plots made from a loop but can't get the tabs to populate with all of the plots generated in the loop. shinyUI(pageWithSidebar( headerPanel("Dynamic number of plots"), sidebarPanel( ), mainPanel( # This is the dynamic UI for the plots uiOutput("IndividualPlots") ) )) server <- function(input, output) { output$IndividualPlots <- renderUI({ if (is.null(input$data_cqt0)) { return() } plot_content() shiny:::buildTabset( id = "t", lapply(1

Show map in shiny

∥☆過路亽.° 提交于 2020-07-23 04:02:17
问题 I would like to generate the map in shiny (attached), however I am having trouble plotting the map from the code below. Could you take a look and help me solve it ??. The shapefile files can be downloaded from the following website: https://github.com/ropensci/stplanr/releases/download/0.6.1/Example.zip If you do not have the sfnetworks package installed, please check this website: https://github.com/luukvdmeer/sfnetworks Thank you very much! library(shiny) library(sf) library(sfnetworks)

Show map in shiny

谁说我不能喝 提交于 2020-07-23 04:00:50
问题 I would like to generate the map in shiny (attached), however I am having trouble plotting the map from the code below. Could you take a look and help me solve it ??. The shapefile files can be downloaded from the following website: https://github.com/ropensci/stplanr/releases/download/0.6.1/Example.zip If you do not have the sfnetworks package installed, please check this website: https://github.com/luukvdmeer/sfnetworks Thank you very much! library(shiny) library(sf) library(sfnetworks)