Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

enter image description here

dashboardBody(
    tabItems(
      tabItem("dashboard",

              mainPanel(
                showOutput("plot3", "Nvd3"),
                showOutput("plot4", "Nvd3")

         )),

Update: Adding HTML("<br><br><br>") in the Main Panel only created a wider dark panel: enter image description here

like image 341
Gary Avatar asked Oct 21 '15 17:10

Gary


2 Answers

Can you try to wrap you showOutput with a div wrap?

tags$div(
  style="margin-bottom:50px;",
  showOutput("plot4", "Nvd3")
)
like image 193
Hao Avatar answered Oct 20 '22 13:10

Hao


I had the same problem. Putting everything in a fluidRow() fixed it for me...

like image 32
user6008351 Avatar answered Oct 20 '22 13:10

user6008351