The goal of flexdashboard is to make it easy to create interactive dashboards for R, using R Markdown.

  • Use R Markdown to publish a group of related data visualizations as a dashboard.

  • Support for a wide variety of components including htmlwidgets; base, lattice, and grid graphics; tabular data; gauges and value boxes; and text annotations.

  • Flexible and easy to specify row and column-based layouts. Components are intelligently re-sized to fill the browser and adapted for display on mobile devices.

  • Storyboard layouts for presenting sequences of visualizations and related commentary.

  • Optionally use Shiny to drive visualizations dynamically.

Learn more about flexdashboard: https://flexdashboard.rmarkdown.io

Examples

    

Installation

Install the flexdashboard package from CRAN as follows:

install.packages("flexdashboard")

To author a flexdashboard you create an R Markdown document with the flexdashboard::flex_dashboard output format. You can do this from within RStudio using the New R Markdown dialog:

If you are not using RStudio, you can create a new flexdashboard R Markdown file from the R console:

rmarkdown::draft("dashboard.Rmd", 
                 template = "flex_dashboard", 
                 package = "flexdashboard")

Getting help

There are two main places to get help with flexdashboard:

  • The RStudio community is a friendly place to ask any questions about flexdashboard.

  • Stack Overflow is a great source of answers to common flexdashboard questions. It is also a great place to get help, once you have created a reproducible example that illustrates your problem.