mainPanel()

This is a classic simple layout that is often used to keep user input components in the sidebar separate from the outputs in the mainPanel, though there are no restrictions on the placement of elements. Inputs can be located in the main panel and outputs in the sidebar, or some in one, and some in the other.

Single elements can be added one by one in the main panel or they could be nested inside other panels

The width of the sidebar can be adjusted by setting the width argument, by default it is 4.

The widths of the sidebarPanel and mainPanel should add up to 12, as in the fluidRow examples in the next tab.