Broadway Musicals

Creating an interactive dashboard with shinymetrics and tidymetrics, moving windows, period aggregation

Published

April 27, 2020

Notable topics: Creating an interactive dashboard with shinymetrics and tidymetrics, moving windows, period aggregation

Recorded on: 2020-04-27

Timestamps by: Eric Fletcher

View code

Screencast

Timestamps

renamecross_by_periods
tidymetrics

Use the cross_by_periods function from the tidymetrics package to aggregate data over time (month, quarter, and year) then visualize with geom_line.

cross_by_periods
tidymetrics

Use the cross_by_periods function from the tidymetrics package with windows = c(28)) to create a 4-week rolling average across month, quarter, and year.

use_metrics_scaffoldcreate_metrics
shinymetricsTidaymetrics

Create and interactive dashboard using the shinymetrics and tidymetrics packages.

str_remove
stringr

Use the str_remove function from the stringr package to remove matched pattern in a string.

cross_by_dimensions
tidymetrics

Use the cross_by_dimensions function from the tidymetrics package which acts as an extended group_by that allows complete summaries across each individual dimension and possible combinations.

shinybones

Use the shinybones package to create an interactive dashboard to visualize all 3 metrics at the same time.