-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Dear Alim,
Is there a way to only add side box to one of splitted boxes? In the code below, I don't need to add side box to Arm A.
g <- add_box(txt = c("Study 1 (n=8)", "Study 2 (n=12)"))
g <- add_box(g, txt = "Included All (n=20)")
g <- add_side_box(g, txt = "Excluded (n=7):\n\u2022 MRI not collected (n=3)")
g <- add_box(g, txt = "Randomised")
g <- add_split(g, txt = c("Arm A (n=143)", "Arm B (n=142)"))
g <- add_side_box(g, txt = c(" ", "Exclude (n=3"))
g <- add_box(g, txt = c("From Arm A", "From Arm B"))
plot(g, grViz = TRUE)
I also wish to stop earlier in one of the arm, e.g. Arm A, and only continue on the Arm B. How could I achieve that?
g <- add_box(txt = c("Study 1 (n=8)", "Study 2 (n=12)"))
g <- add_box(g, txt = "Included All (n=20)")
g <- add_side_box(g, txt = "Excluded (n=7):\n\u2022 MRI not collected (n=3)")
g <- add_box(g, txt = "Randomised")
g <- add_split(g, txt = c("Arm A (n=143)", "Arm B (n=142)"))
g <- add_side_box(g, txt = "Exclude (n=3)")
g <- add_box(g, txt = "From Arm B")
plot(g, grViz = TRUE)