Using the grid layout

In the next version of the application, we're going to use the fluidRow() function to apply a custom layout to the UI. This function allows you to implement the standard Bootstrap grid layout, as we saw in Chapter 4Mastering Shiny's UI Functions.

The width of the screen is given as 12 units, and you can pass the column() functions of arbitrary size into a fluidRow() instruction to define a group of widths adding up to 12. In this simple example, we will have three columns in the first row and then one in the second row. The finished application looks like this:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset