timeline | R Documentation |
Create a 'timevis' timeline of project risks.
timeline(risk_df, groups_df, start, end, height = NULL)
risk_df |
data frame; A 'timevis' "data" data frame. |
groups_df |
data frame; A 'timevis' "groups" data frame. |
start |
date, number, or string that can be converted to a date; The start date of the timeline. |
end |
date, number, or string that can be converted to a date; The end date of the timeline. |
height |
Fixed height for timeline (in css units). |
A 'timevis' created timeline visualization 'htmlwidgets' object.
db_risk <- rarr::db_risk # Wrangle risk data risk <- rarr::wrangle_risk(db_risk) #Wrangle risk time dataframe risk_time <- rarr::wrangle_risk_time(risk) #Wrangle risk time categories risk_time_riskcategory<-rarr::wrangle_risk_time_riskcat(risk) 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.