# Equal sizing
splitLayout(
plotOutput("plot1"),
plotOutput("plot2")
)
# Custom widths
splitLayout(cellWidths = c("25%", "75%"),
plotOutput("plot1"),
plotOutput("plot2")
)
# All cells at 300 pixels wide, with cell padding
# and a border around everything
splitLayout(
style = "border: 1px solid silver;",
cellWidths = 300,
cellArgs = list(style = "padding: 6px"),
plotOutput("plot1"),
plotOutput("plot2"),
plotOutput("plot3")
)
Run the code above in your browser using DataCamp Workspace