Skip to contents

Sankey

How to create the sankey data for the sankey widget

sankey_counts_table()
Make table representation of state counts
sankey_id_ansible()
Convert ansible data to sankey id timed data
sankey_id_events()
Convert events data to sankey id timed data
sankey_list_maker()
Make sankey data for nswidgets
sankey_table_maker()
Make table representation of state counts
sankey_transition_counts()
Make table for transition counts
setup_cohort()
Set-up cohort data for Sankey creation
create_time_varying_data()
Create a Time-Varying Medication Dataset
format_sankey_data()
Make sankey data for nswidgets
plot_sankey()
Create a Sankey diagram in R
filter_gofl()
Extract strata from gofl-stratified Sankey output

Sunburst

How to create data for the sunburst widget

sunburst_id_data()
Convert ansible data to sunburst id ordered data
sunburst_maker()
Make sunburst data for nswidgets
take_latest()
Take latest

Table

Investigate the data and the states at each time point

make_state_map()
make_state_map

Event Helpers

Functions to help manage and transform events data

convert_tagged_cdf()
Convert tagged cdf
truncate_events()
Truncate overlapping treatment intervals
stockpile_events()
Stockpile overlapping treatment intervals
union_events()
Take the union of overlapping or near-contiguous treatment intervals
split_treatment_classes()
Split an events dataframe by leveled and non-leveled treatment classes
ansible()
Interval ansible