Combining layout functions

To finish, let's look at how to use different layout functions together to achieve a simple and flexible setup for your application. There are lots of different ways of doing this; this example is designed just to show you that you can use a wide variety of functions to write quick, simple code. In truth, any design can be made using the grid system, given enough time and effort, but it is sometimes simpler just to use a built-in function, as you can see. In this example, I've added a couple of graphs to flesh out the interface a bit, but we won't bother looking at the code for them. They're just created using renderPlot({plot(runif(10, runif(10))}) and assigned to output$graph1 and output$graph2. The final UI code ...

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.