Questions tagged [shinydashboard]

shinydashboard is an R package which provides a framework for creating dashboards using R and shiny.

shinydashboard is an R package which builds on top of the shiny package in order to facilitate the creation of interactive dashboards.

Repositories

Stable Version on Cran

2792 questions
12
votes
1 answer

How to programmatically collapse a box in shiny dashboard

I'm trying to collapse a box programmatically when an input changes. It seems that I only need to add the class "collapsed-box" to the box, I tried to use the shinyjs function addClass, but I don't know how to do that becuase a box doesn't have an…
Geovany
  • 5,389
  • 21
  • 37
11
votes
1 answer

R shiny how to "box" a simple text on a shiny page

I'm using documentation https://shiny.rstudio.com/tutorial/written-tutorial/lesson2/ and more precisely the following code to add a simple paragraph to my shiny page: ui <- fluidPage( titlePanel("My Shiny App"), sidebarLayout( …
Angelo
  • 1,594
  • 5
  • 17
  • 50
11
votes
2 answers

Show/hide entire box element in R Shiny

I'm currently trying to find a way to hide/show an entire box() element (and everything inside) in R Shiny. I want to create a maybe a button which allows the user to expand a specifict box and then to hide it with the same (or even different)…
Yordan Ivanov
  • 329
  • 1
  • 3
  • 14
11
votes
1 answer

Change sidebar menu item color in R Shiny

Could any one let me know the tag name to change the color of blue line (refer the Image in menuItem in Shiny Dashboard. Here is the code to change the bg color of sidebar menu item. .skin-blue .main-sidebar .sidebar .sidebar-menu .active a{ …
string
  • 787
  • 10
  • 39
11
votes
2 answers

R/ShinyApp not showing plot_ly in browser but show only graph in viewer pane

I am facing the same issue as mentioned in R/Shiny plots do not show in the browser But in my case reactivePlot() is not working.It shows error i.e "reactivePlot is deprecated. Please use renderPlot instead." The code doesn't throw any error. It…
Sachin Vardhan
  • 743
  • 1
  • 8
  • 19
11
votes
1 answer

shiny dashboard: jump to specific element in app by clicking infoBox

In my shiny app I want to add an option to let users jump to a specific element in the app (a table, a plot, just anything with an id), on current or different tab, by clicking on infoBox (or any other object I want). My solution was to surround…
Maju116
  • 1,607
  • 1
  • 15
  • 30
11
votes
1 answer

title in tab of browser empty in shiny dashboard page

Though there is the posibility to add a title in a shiny dashboard app, which appears correctly in the app page, ## app.R ## library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(title = "my title"), dashboardSidebar(), …
Ferroao
  • 3,042
  • 28
  • 53
11
votes
1 answer

React to menuItem() tab selection

In shinydashboard, one can create menuItem()s, which are tabs in the sidebar. I want to be able to poll which tab is active, by using the standard input$foo syntax. However, I was not able to do so. I tried by referencing the menuItem()'s tabName or…
AF7
  • 3,160
  • 28
  • 63
11
votes
5 answers

How to add more Whitespace to the Main Panel in Shiny Dashboard?

I have a couple of charts in my Main Panel in my Shiny Dashboard, and I was wondering how to extend the whitespace at the bottom of the main panel? How should I modify my ui.R to do this? dashboardBody( tabItems( tabItem("dashboard", …
Gary
  • 2,137
  • 3
  • 23
  • 41
11
votes
1 answer

disabling/enabling sidebar from server side

Is there any way to manually disabling/enabling the sidebar on shiny dashboard app from the server side? I would like to hide the sidebar automatically when I need more space without using toggle button on the header. Thank you
Geovany
  • 5,389
  • 21
  • 37
10
votes
1 answer

Creating drill down report in R Shiny

I am trying to display a data table with 'n' number of columns as shown below Begin Date | EndDate | Month | Year | Count of Students 2/1/2014 | 1/31/2015 | Jan | 2014 | 10 3/1/2014 | 2/28/2015 | Feb | 2014 | 20 4/1/2014 | 3/31/2015 | Mar | 2014 |…
Deepika
  • 103
  • 1
  • 4
10
votes
1 answer

Adjust height of the whole header bar in dashboardHeader in shiny dashboard

I have seen that there is a similar question here : Adjust height of dashboardheader in shinydashboard but I don't have the reputation to comment on the given answer. The solution given to this answer will work in the case where I want to expand…
B.C
  • 577
  • 3
  • 18
10
votes
4 answers

sliderInput Max/Min Text Labels

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…
Caleb Lam
  • 111
  • 1
  • 6
10
votes
2 answers

Shinydashboard 'topbar'

Is it possible to place some items in the horizontal bar next to the dashboardHeader? I know you can place notificationItem on the far right like in this example. But I would like to use the same options as in dashboardSidebar like adding filters…
Tim_Utrecht
  • 1,459
  • 6
  • 24
  • 44
10
votes
1 answer

Identify position of a click on a raster in leaflet, in R

I am plotting a large lat-lon NetCDF raster over an R leaflet map using shinydashboard. When I click on the map, a popup comes out and shows row, column, lat-lon position and value of the clicked raster point. (See reproducible code below) The…
AF7
  • 3,160
  • 28
  • 63