Exercises

These exercises build on the dashboard developed in this chapter. Each one extends the dashboard in a specific direction; together, they cover the full set of dashboard skills introduced in Chapters 15 and 16.

16.5.2 1. Two-column starter dashboard

Build a minimal Quarto Dashboard with two value boxes side by side: average absence hours and the count of unique employees. Render it as a self-contained HTML file and confirm both tiles display correctly.

16.5.3 2. Interactive plotly chart

Add a third tile to the dashboard from Exercise 1: an interactive bar chart of total absence hours by day of the week. Use coord_flip() to keep day labels readable. Verify that the chart’s hover tooltips display each day’s value.

16.5.4 3. Multi-page dashboard

Extend the dashboard from this chapter with a second page titled “Department detail.” On the new page, place a single chart that breaks down absence hours by Education level. Use level-1 (#) headings to create the second page in Quarto Dashboard.

16.5.5 4. crosstalk filtering

Add a crosstalk dropdown filter on Education that links a filtered version of the data table (using DT::datatable()) and the bar chart from this chapter. Confirm that selecting an Education level updates both linked widgets.

16.5.6 5. Deploy a self-contained HTML dashboard

Render the dashboard from this chapter to a single self-contained HTML file using quarto::quarto_render(). Verify that the file opens correctly when emailed or moved to a different machine, and that all interactivity (hover tooltips, plotly controls) still works.