library("jrAutomate")
library("flexdashboard")

Exercise 1 (15 minutes)

  1. Open exercises/chapter3/single_column_fill.Rmd and Knit.

    • Add two additional charts to get the following layout

      r layout(matrix(c(1:4), 4, 1, byrow = TRUE)) layout_show(4, 2) 1. What is the difference between Column (fill) and Column (scroll). Hint: create a dashboard with $6$ charts for fill and scroll

  2. Open exercises/chapter3/row.Rmd. Recreate the following layouts

    • Layout 1

      r layout(matrix(c(1:4), 2, 2, byrow = TRUE)) layout_show(4, 1) * Layout 2

      r layout(matrix(c(1:2, 3, 3, 4:5), 3, 2, byrow = TRUE)) layout_show(5, 1)

Exercise 2 (15 minutes)

Create the following layouts

Exercise 3 (30 minutes)

  1. Open the Multiple columns .Rmd file and knit. Create the following layout. r layout(matrix(c(1, 1, 2, 4, 1, 1, 2, 5, 1, 1, 3, 6, 1, 1, 3, 7), 4, 4, byrow = TRUE)) layout_show(7, 1)
  2. Open chapter3/pages.Rmd.
    • Open the vignette components r vignette("components", package = "jrAutomate") to give you an idea of what is possible. The source code for the vignette is in the file chapter3/components.Rmd
    • Create a dashboard with $3$ pages. Add some graphs (perhaps using htmlwidgets) of your own data.
  3. The flexdashboard documentation gives more details on pages. Including,

Exercise 4 (20 minutes)

  1. It's easy to create tab panes.
  2. Open chapter3/tabs.Rmd.
  3. What does the .tabset-fade attribute do?
  4. Alter one of your existing layouts and add a tab component
  5. Another neat layout is Storyboard
  6. Knit chapter3/story.Rmd.
  7. Add an additional frame to the storyboard containing a boxplot of the simulated data.
  8. Example from RStudio


jr-packages/jrAutomate documentation built on Dec. 14, 2019, 6:35 p.m.