1. Learn
  2. /
  3. Courses
  4. /
  5. Creating Dashboards with shinydashboard

Exercise

Create body with row-based layout

Recall that you can create a dashboard with row-based layout using the fluidRow() function from shiny within the dashboardBody(). We want to create two rows, one with the following content:

# Row 1
  box(
    width = 12,
    title = "Regular Box, Row 1",
    "Star Wars"
    )

and a second row with the following content:

# Row 2
  box(
    width = 12,
    title = "Regular Box, Row 2",
    "Nothing but Star Wars"
    )

Instructions

100 XP
  • Create Row 1 using fluidRow() and the single box() function in the first code block above.
  • Create Row 2 using fluidRow() and the single box() function in the second code block.
  • Rerun the shiny app with these updates.