@@ -19,7 +19,7 @@ test_that(
1919 )
2020 plot2 | > vdiffr :: expect_doppelganger(title = " curve-quantiles-and-samples" )
2121
22- # 3. Curves only, no quantiles
22+ # 3. Test that disabling quantiles works correctly (curves only)
2323 plot3 <- graph.curve.params(
2424 curve ,
2525 n_curves = Inf ,
@@ -28,14 +28,22 @@ test_that(
2828
2929 plot3 | > vdiffr :: expect_doppelganger(title = " curve-samples" )
3030
31- # 4. Custom numeric quantiles only
31+ # 4. Test that custom numeric quantiles are drawn correctly
3232 plot4 <- graph.curve.params(
3333 curve ,
3434 n_curves = 0 ,
3535 quantiles = c(0.05 , 0.55 , 0.95 )
3636 )
3737 plot4 | > vdiffr :: expect_doppelganger(title = " curve-custom-quantiles" )
3838
39+ # 5. Test that chain_color = FALSE works correctly
40+ plot5 <- graph.curve.params(
41+ curve ,
42+ n_curves = Inf ,
43+ quantiles = c(0.05 , 0.55 , 0.95 ),
44+ chain_color = FALSE
45+ )
46+ plot5 | > vdiffr :: expect_doppelganger(title = " curve-black-chains" )
3947 }
4048)
4149
@@ -46,10 +54,11 @@ test_that(
4654 typhoid_curves_nostrat_100 | >
4755 dplyr :: filter(antigen_iso %in% c(" HlyE_IgA" , " HlyE_IgG" )) | >
4856 dplyr :: mutate(.by = antigen_iso , chain = rep(1 : 2 , times = n() / 2 ))
57+
58+ # Test that log_x argument works with samples only
4959 plot3 <- graph.curve.params(
5060 curve ,
5161 n_curves = Inf ,
52- show_quantiles = TRUE ,
5362 log_x = TRUE
5463 )
5564 plot3 | >
0 commit comments