This helper function prepares a ggplot
geom with reference lines
separating different cohorts on the plot of Data
class object.
Lines are either vertical or horizontal of green color and longdash type.
Arguments
- cohort
(
integer
)
the cohort indices.- placebo
(
flag
)
is placebo included in the doses? If it so, this function returnsNULL
object as in this case all doses in a given cohort are equal and there is no need to separate them.- vertical
(
flag
)
should the line be vertical? Otherwise it is horizontal.