With flexdashboard, you can easily create interactive dashboards for R. What is amazing about it is that with R Markdown, you can publish a group of related data visualizations as a dashboard.
Additionally, it supports a wide variety of components, including htmlwidgets; base, lattice, and grid graphics; tabular data; gauges and value boxes and text annotations.
It is flexible and easy to specify rows and column-based layouts. Components are intelligently re-sized to fill the browser and adapted for display on mobile devices.
In combination with Shiny, you can create a high quality dashboard with interactive visualizations.
Before proceeding, please follow our short tutorial.
Look at the examples given and try to understand the logic behind them. Then, try to solve the exercises below by using R without looking at the answers. Then, check the solutions to check your answers.
Create a new flexdashboard R Markdown file from the R console.
Create the very initial dashboard interface in a single column.
Add the space that you will put your first chart in.
Add the space that you will put your second chart in. The two charts should be stacked vertically.
Add a third chart with the same logic.
Transform your layout to scrolling.
Displays THE 3 charts split across two columns.
Change the width of these two columns.
Define two rows, instead of columns. The first has a single chart and the second has two charts.
Change the height of these two columns.
- Become a Top R Programmer Fast with our Individual Coaching Program
- Explore all our (>4000) R exercises
- Find an R course using our R Course Finder directory
- Subscribe to receive weekly updates and bonus sets by email
- Share with your friends and colleagues using the buttons below