library("jrAutomate") library("flexdashboard")
For links to any webpages, see vignette("links", package = "jrAutomate")
exercises/chapter3/single_column_fill.Rmd
and Knit. layout(matrix(c(1:4), 4, 1, byrow = TRUE)) layout_show(4, 2)
What is the difference between Column (fill)
and Column (scroll)
.
Hint: create a dashboard with $6$ charts for fill
and scroll
Open exercises/chapter3/row.Rmd
. Recreate the following layouts
Layout 1
layout(matrix(c(1:4), 2, 2, byrow = TRUE)) layout_show(4, 1)
layout(matrix(c(1:2, 3, 3, 4:5), 3, 2, byrow = TRUE)) layout_show(5, 1)
Create the following layouts
{data-width=XXX}
)layout(matrix(c(1, 1, 2, 3:5), 2, 3, byrow = TRUE)) layout_show(5, 1)
{data-height=XXX}
)layout(matrix(c(1, 1, 2, 1, 1, 2, 3:5), 3, 3, byrow = TRUE)) layout_show(5, 1)
Multiple columns
.Rmd
file and knit.
Create the following layout.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)
chapter3/pages.Rmd
. components
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.
The flexdashboard^[See vignette("links", package = "jrAutomate")
] documentation
gives more details on pages. Including,
It's easy to create tab panes.
Open chapter3/tabs.Rmd
.
.tabset-fade
attribute do?Alter one of your existing layouts and add a tab component
Another neat layout is Storyboard^[See vignette("links", package = "jrAutomate")
]
Knit chapter3/story.Rmd
.
boxplot
of the simulated data.vignette("links", package = "jrAutomate")
] from RStudioAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.