Skip to content

Commit

Permalink
test add_benchmark function
Browse files Browse the repository at this point in the history
  • Loading branch information
abourdea committed Dec 7, 2023
1 parent 363e9f5 commit e2c5256
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions function_testing/test_caterpillar_DEC2023.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ obi_cohort = obi |>
obstinit::create_obi_cohort()

test_ces = obi_cohort |>
create_caterpillar_df(cesarean, birth)
obstinit::create_caterpillar_df(cesarean, birth)

test_dys = obi_cohort |>
create_caterpillar_df(overall_dystocia_compliance_num, overall_dystocia_den_all)
obstinit::create_caterpillar_df(overall_dystocia_compliance_num, overall_dystocia_den_all)

test_ces |>
plot_caterpillar_chart()
test_plot = test_ces |>
obstinit::plot_caterpillar_chart()

test_plot |>
add_benchmark(y_int = 0.8, add_label = T, label_text = "test", label_xval = 10)

0 comments on commit e2c5256

Please sign in to comment.