knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(rarr) library(magrittr) library(dplyr)
The timeline function is can be used to display filtered risk tables and the project timeline. This function requires two unique data products to create the html timeline widget.
In this step the wrangled risk dataframe is wrangled into a risk time data frame.
risk<-rarr::db_risk risk<-rarr::wrangle_risk(risk) risk_time <- rarr::wrangle_risk_time(risk)
risk_time_riskcategory <- rarr::wrangle_risk_time_riskcat(risk)
The final step is to create the project risk timeline. To accomplish this, you input the risk_time and risk_time_riskcategory dataframes into the timeline function and specify the outputs dimensions.
rarr::timeline(risk_df = risk_time, groups_df = risk_time_riskcategory, height = "700px", start = "2021-01-01", end = "2025-01-01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.