How to add more spaces to the main panel in a shiny panel?

I have a couple of diagrams in my main panel in Shiny Dashboard, and I was wondering how to expand the space at the bottom of the main panel? How do I change mine ui.Rto do this?

enter image description here

dashboardBody(
    tabItems(
      tabItem("dashboard",

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

         )),

Update: adding HTML("<br><br><br>")on the main panel only created a wider dark panel:enter image description here

+5
source share
5 answers

Use CSS, in your ui.R file add:

tags$head(
   tags$style(
       HTML("#dashboard{margin-bottom:50px;}")
   )
)
+1
source

Can you try wrapping you in a showOutputwrapper div?

tags$div(
  style="margin-bottom:50px;",
  showOutput("plot4", "Nvd3")
)
+3
source

. fluidRow() ...

+3

I had the same problem, and as per the Jthorpe prompt , I deleted everything mainPanelfrom my script. I have six graphs one by one vertically, and it works great.

0
source

For vertical spaces in Shiny you can use headerPanel("")

0
source

Source: https://habr.com/ru/post/1612626/


All Articles