BlackHat BlackHat - 25 days ago 7
R Question

Formating by creating spaces between Shiny Plots

I'm trying to do some formatting for my shiny app.
There is no space between my plots. Can someone please show me how to create spaces between my plots?
Below is my UI code: My plots are

dashboardPage(
dashboardHeader(title = "Dashboard"),
dashboardSidebar( selectizeInput("group",
label = "group",
choices = unique(dataset$group),
multiple = F,
options = list(maxItems = 5, placeholder = 'Please select a group(s)'),
selected = "None")),
dashboardBody(
fluidRow(
plotlyOutput("plot1"),
plotlyOutput("plot2"),
plotlyOutput("plot3"),
plotlyOutput("plot4")
)
)
)

Answer

You can use CSS to style your pages. There are quite a few options described here.

You can use one of them to add, say, margin around your plots.