Easily Build a Dashboard with R 🖥️

Sam Parmar
1 min readDec 6, 2020

--

The flexdashboard package allows R programmers to easily develop interactive dashboards. The package is used with R markdown. Dashboards can be static via a HTML webpage or dynamic via a R Shiny document. These are great for storytelling or metrics tracking. There are numerous custom layouts and components that can be added to your dashboard. It can also be used with R Shiny.

Here are flexdashboard examples (with accessible source code) that are provided by RStudio. Use cases include narrative visualizations, metrics tracking, disease tracking dashboards, and many more.

🚦Can you think of your own ways to use the package?

Get started

To install the Flexdashboard package in RStudio use the following:

install.packages(“flexdashboard”)

The following R markdown code can be used for a simple stacked layout for your content (copy and paste into an R markdown file then Knit the code to see the webpage that gets produced):

---
title: "Stacked Layout Example"
output: flexdashboard::flex_dashboard
---

### First chart

```{r}
```

### Second chart
```{r}```

Next steps

⌛This is meant to be a quick introduction to the package. If you want an easy to develop and deploy dashboard in R, then you should definitely check out the Flexdashboard package. They have more complex layout options that you can choose and build from. Visit the official Flexdashboard website for more information.

--

--

Sam Parmar
Sam Parmar

No responses yet