shinydashboard

Show content for menuItem when menuSubItems exist in Shiny Dashboard

十年热恋 提交于 2019-11-30 23:49:32
Is there a way of actually showing content in the content pane of a Shiny Dashboard for a menuItem with existing menuSubItems. In the example: I tried to add "tabName = "charts"" to the menuItem "Charts" in order to show the content of tabItem "charts". However, no effect besides opening the menu and showing the submenu (the content pane still shows the "old" content of the previous selection): header <- dashboardHeader() #> Error in dashboardHeader(): konnte Funktion "dashboardHeader" nicht finden sidebar <- dashboardSidebar( sidebarUserPanel("User Name", subtitle = a(href = "#", icon("circle

sliderInput Max/Min Text Labels

孤街醉人 提交于 2019-11-30 22:23:26
I am currently working on a dashboard with multiple sliderInputs. Is it possible to replace the max and min labels with text? For example, my min = 1 and max = 10. I want to keep the scale from 1 to 10 while having the slider labels appear as "sooner" and "later" respectively. Thanks! The short answer here is no, sadly; short of hacking through the underlying code in JavaScript, there is no way to relabel slider ticks (though there are a few formatting parameters). However, you can hack the labels into the widget label by passing it an HTML object styled with inline CSS. Make sure to set the

legend labels not displaying inline when using labels and colors in leaflet map on shiny

我的梦境 提交于 2019-11-30 20:32:34
When i want to use labels and colors parameters with addLegend() function inside a shinyApp the legend is displayed in staircase as you can see below. But if i render the map only with leaflet outside of the shinyApp the labels are correctly displayed inline. I have seen this post with the same issue but their is no reproductible example so i decided to post my own question. Wrong Display (shiny dashboard) Correct Display (leaflet standalone) I made a reproductible example : # ----- Load and install missing packages packages<-c("shiny","shinydashboard","leaflet") new.packages <- packages[!

Show content for menuItem when menuSubItems exist in Shiny Dashboard

为君一笑 提交于 2019-11-30 18:06:02
问题 Is there a way of actually showing content in the content pane of a Shiny Dashboard for a menuItem with existing menuSubItems. In the example: I tried to add "tabName = "charts"" to the menuItem "Charts" in order to show the content of tabItem "charts". However, no effect besides opening the menu and showing the submenu (the content pane still shows the "old" content of the previous selection): header <- dashboardHeader() #> Error in dashboardHeader(): konnte Funktion "dashboardHeader" nicht

R shinydashboard dynamic menu selection

六月ゝ 毕业季﹏ 提交于 2019-11-30 15:47:34
问题 I have created dynamic sibebar menus in R shinydashboard. Even though I use selected = TRUE , no menuItem associated with a menu gets selected at startup in this dynamic mode. How can I make sure I have control on which menuItem's contents is shown at startup in this dynamic mode? I have been searching all over through similar posts. Could not find anything that work so far. updateTabItems() did not seem to work. Any ideas? thanks from advance. library(shiny) library(shinydashboard) ui <-

Add dynamic tabs in shiny dashboard using conditional panel

∥☆過路亽.° 提交于 2019-11-30 15:28:44
I would like to have dynamic tabs for my shiny app. I tried the below code ## app.R ## library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(), dashboardSidebar( checkboxGroupInput("Tabs", label = h4("tabpanel"), choices = list("tabs" = "tabs"), selected = NULL), checkboxGroupInput("moreTabs", label = h4("moretabpanel"), choices = list("moretabs" = "moretabs"), selected = NULL) ), dashboardBody( conditionalPanel( condition = "input.Tabs == 'tabs'", tabBox( title = "intro", id= "ttabs", width = 8, height = "420px", tabPanel("Files", dataTableOutput("Files")),

Use href infobox as actionbutton

家住魔仙堡 提交于 2019-11-30 07:32:08
问题 I was building an App with Rshiny . I have a couple of infoBox and I would like to use the href option to make a pop-up when clicking on the infoBox . I use shinyBS for the popup options. here is what i tried : valueBox(value=entry_01, icon = icon("users","fa-lg",lib="font-awesome"),href=shinyInput(actionLink,id='button_01',len=1,class="btn btn-default action-button",label=""), width=NULL,color = "light-blue",subtitle = "" ) But I figured out that the href option work perfectly if we want to

How to display widgets inline in shiny

假装没事ソ 提交于 2019-11-30 06:54:09
问题 I have the below code to display the widgets inline(in same row) in shiny div(style="display:inline-block; width: 150px;height: 75px;",selectInput("ddllgra", "Function:",c('mean','median','sd','count','min','max'), selected='mean')), div(style="display:inline-block; width: 150px;height: 75px;",textInput(inputId="xlimitsmax", label="x-max", value = 0.5)) It is coming out in UI, but not in the same line order. one in coming in the upper side and other is coming on the lower side one the same

How to make pdf download in shiny app response to user inputs?

耗尽温柔 提交于 2019-11-30 05:31:42
I want to make the table and the barplot generated by my shiny app to be downloadable as a pdf report. I can generate the report with the selected inputs the first time I start the app on my local computer, but when I switch the inputs, it doesn't generate the reports of the new inputs on pdf. Here's my ui code require(shiny) require(shinydashboard) require(ggplot2) require(ggthemes) sample <- read.csv("new_sample2.csv", stringsAsFactors = FALSE) header <- dashboardHeader(title = "XYZ School Student Dashboard", titleWidth = 370) body <- dashboardBody( tags$head(tags$style(HTML(' .main-header

Switching between menuSubItems in shinyDashboard

拜拜、爱过 提交于 2019-11-30 05:31:11
问题 I'm trying to set up a shiny app using shinydashboard, and for the most part, having good luck. However, I'm running into a quirk with sidebar behavior that I think is avoidable, but haven't found how yet. Below is a small example that reproduces the problem I'm having. Basically, there are two sidebarMenus - Menu One and Menu Two, each with two menuSubItems. Switching subitems within a menu item works fine. So, if I wanted to switch from subItemOne to subItemTwo, no problems. I can do that