shinydashboard

Zoom out shiny app at default in browser

吃可爱长大的小学妹 提交于 2019-11-28 05:13:00
问题 When I open my shiny apps I find them look better when I zoom out to 75%. How can I force the shiny app to open at 75%, also on a server? I already tried what they mention in this link but it doesn't seem to work. css: .content-wrapper, .right-side { background-color: #ffffff; } #controls { zoom: 0.75; } Thanks 回答1: Using this SO answer: https://stackoverflow.com/a/21668647/4564432 library(shiny) # Define UI for application that draws a histogram ui <- shinyUI(fluidPage( tags$style(" body {

How to add a company Logo to ShinyDashboard header (Not mainPanel or mainHeader)

China☆狼群 提交于 2019-11-28 01:38:23
问题 I tried to refer to below answers but the logo is locate inside the main panel but not the header panel... Any solution? Adding a company Logo to ShinyDashboard header Embedding Image in Shiny App Add company logo to every page using Rstudio and knitr [duplicate] I saw that DISTRIBUTIONS OF RANDOM VARIABLES has a logo inside main panel's header but unable to work in shinyDashboard header. Below is the coding for the company logo header: headerPanel( HTML('Distributions of Random Variables v4

Shiny Dashboard - display a dedicated “loading..” page until initial loading of the data is done

让人想犯罪 __ 提交于 2019-11-27 23:36:47
I have initial loading of data from the DB in the server.R which takes a few seconds. Until this is done, the page displayed is distorted (wrong data in selection box, and weird placing of the boxes, see below). I want to display a different page (or at least different content in my first-displayed tab) until the data is completely loaded. I thought about doing some kind of conditionalPanel using a condition based on a dedicated global variable (initial_loading_done), but wherever I tried placing the conditionalPanel it didn't work. This is the structure of my UI.R: shinyUI( dashboardPage(

R shinyBS popup window

梦想与她 提交于 2019-11-27 22:52:32
问题 I working on a project where I have to create a form in shiny. I currently have a datatable in the UI which has email in the form of hyperlink. Once the hyperlink is clicked the modal window opens where I have another UI which shows the various fields to be filled. I have a save button here that should update my DB in the backend once the button is clicked. The problem I am facing is that I am unable to reference each email to that particular modal window and my update query updates all the

Navigate to particular sidebar menu item in ShinyDashboard?

不羁岁月 提交于 2019-11-27 21:44:13
(cross post from shiny google groups, https://groups.google.com/forum/#!topic/shiny-discuss/CvoABQQoZeE ) How can one navigate to a particular sidebar menu item in ShinyDashboard? sidebarMenu( menuItem("Menu Item 1") menuItem("Menu Item 2") ) i.e. how can I put a button on the "Menu Item 1" page that will link to "Menu Item 2"? To navigate between tabs I am using the updateTabsetPanel function: observeEvent(input$go,{ updateTabsetPanel(session, "tabset1", selected = "Step 2") }) I believe I should be able to use a similar function to navigate to a sidebar menu, but I am not sure what that is.

Add text on right of shinydashboard header

青春壹個敷衍的年華 提交于 2019-11-27 18:42:55
问题 How do I add text to the right of a dashboard header sidebar icon? It seems that previous similar solutions no longer work under updates to dashboardHeader() . This is what I am trying to do in a basic shinydashboard setting: I can use the strategy from this answer to get text in the header, but it's right-justified (which I can likely fix custom css) and also feels pretty hacky. library(shiny) library(shinydashboard) ui <- dashboardPage(dashboardHeader(title = "demo", tags$li(class =

Adding a company Logo to ShinyDashboard header

好久不见. 提交于 2019-11-27 11:48:29
So just curious, is there any way to add a company logo to the header of a ShinyDashboard? As I am looking at the documentation , it describes changing the "logo" in the CSS, this is just configuring what goes in the upper left hand corner though as far as I can tell and I would like to keep my title there. I am not using the drop down menus and so I would like to add my company logo on the top right where the red box is. Does anyone have any idea how this can be done with Shinydashboard? Thanks. I've been working with a bit of a hack for this, (and I know you didn't ask for it, but here's a

How to change color in shiny dashboard?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 09:26:57
问题 (cross post from shiny google groups) Could some one point me to the tag names that I have to modify the color of a shiny dashboard? Modified from http://rstudio.github.io/shinydashboard/appearance.html#long-titles this will change the top left corner of my dashboard to orange tags$head(tags$style(HTML(' .skin-blue .main-header .logo { background-color: #f4b943; } .skin-blue .main-header .logo:hover { background-color: #f4b943; } '))) It is unclear to me how to change the rest of the header

Usage of UIOutput in multiple menuItems in R shiny dashboard

馋奶兔 提交于 2019-11-27 08:34:34
问题 The R shiny script below displays "output$brand_selector" output in subItem1. I wish to display the same output in subItem2 and subItem3. Please help, also when I open the dashboard, the output is present by default, I wish to make it appear only when I click on a subItem, thanks and please help. candyData <- read.table( text = " Brand Candy value Nestle 100Grand Choc1 Netle Butterfinger Choc2 Nestle Crunch Choc2 Hershey's KitKat Choc4 Hershey's Reeses Choc3 Hershey's Mounds Choc2 Mars

How do you pass parameters to a shiny app via URL

你。 提交于 2019-11-27 07:27:03
In web browsers you pass parameters to a website like www.mysite.com/?parameter=1 I have a shiny app and I would like to use the parameter passed in to the site in calculations as an input. So is it possible to do something like www.mysite.com/?parameter=1 and then use input!parameter? Can you provide any sample code or links? Thank you You'd have to update the input yourself when the app initializes based on the URL. You would use the session$clientData$url_search variable to get the query parameters. Here's an example, you can easily expand this into your needs library(shiny) shinyApp( ui =