Skip to contents

All functions

add_exprs()
Partially bold a string
br_charts_theme()
BR charts theme
brdata
Example effects table
calculate_diff_bin()
CI for absolute risk for binary outcomes
calculate_diff_con()
CI for treatment difference in continuous outcomes
calculate_diff_rates()
CI for treatment difference in exposure-adjusted rates
calculate_log_odds_ratio_bin()
CI for log odds ratio for binary outcomes
calculate_log_rel_risk_bin()
CI for log relative risk for binary outcomes
calculate_odds_ratio_bin()
CI for odds ratio for binary outcomes
calculate_rel_risk_bin()
CI for relative risk for binary outcomes
check_effects_table()
Check if data contains required features to run a specific plot
check_feature()
intermediate function used to display log messages check if a specific feature exist in the data
check_feature_string()
intermediate function used to display log messages check if a specific feature exist in the data
colfun()
Function for colors
comp_outcome
Example composite outcome data used for Figure 12
compare_value_function_types()
Compare Different Value Function Types
compare_value_functions()
Compare Value Functions for Benefits and Risks
control_fonts()
Control Fonts
corr
Example correlation data for correlogram visualization
corr2
Simulated benefit-risk correlation data for correlogram visualization
create_correlogram()
Create a correlogram from a given dataframe
create_forest_dot_plot()
Create Forest and Dot Plots for Treatment Effects
create_mcda_barplot_comparison()
Create MCDA Bar Chart: Normalized Values Comparison
create_mcda_brmap()
Create MCDA Benefit-Risk Map
create_mcda_walkthrough()
Create MCDA Bar Chart: Calculation Walkthrough
create_mcda_waterfall()
Create MCDA Waterfall Chart
create_value_function_plot()
Create Value Function Visualization
cumexcess
Example cumulative excess plot data used for Figure 13
divergent_stacked_barchart()
Divergent Stacked Bar Chart
effects_table
Example treatment effect table
font_config()
Calculate Font Size Based on Figure Dimensions
generate_tradeoff_plot()
Trade-off plot
gensurv()
Simulate data (utilized for function tests)
gensurv_combined()
Combine the cumulative excess plot and corresponding table into one figure
gensurv_plot()
Create a cumulative excess plot from a given dataframe
gensurv_table()
Create a table that corresponds to the cumulative excess plot
ggsave_custom()
Wrapper to ggsave: Save a ggplot (or other grid object) with sensible defaults
labs_bold()
Create expression
mcda_data
Example MCDA data in wide format
mcda_tornado()
Create MCDA Tornado Plot
plot_multiple_value_functions()
Compare Multiple Value Functions
prepare_br_calculated_ci()
Prepare data analysis for binary and continuous outcomes with Calculated interval confidence identifies whether the dataframe is for Benefit or Risk analysis
prepare_br_supplied_ci()
Prepare data analysis for binary and continuous outcomes with Supplied interval confidence identifies whether the dataframe is for Benefit or Risk analysis
prepare_forest_dot_data()
Prepare Data for Forest and Dot Plots
prepare_tradeoff_data()
Prepare data for the tradeoff plot
prepare_tradeoff_plot()
Prepare trade-off plot
publication_geom_text_size()
Convert points to ggplot geom text size units
publication_typography()
Publication Typography Profile
relmax()
Derive maximum boundary value for axis Derive boundary value to include all values
relmin()
Derive minimum boundary value for axis Derive boundary value to include all values
scatter_plot()
Create a scatterplot from a given dataframe.
scatterplot
Example scatterplot data used for Figure 11
stacked_barchart()
Stacked Bar Chart