Description Usage Arguments Details
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.
1 | h_plot_data_cohort_lines(cohort, placebo, vertical = TRUE)
|
cohort |
( |
placebo |
( |
vertical |
( |
The geom object is returned if and only if placebo
is equal to
TRUE
and there are more than one unique values in cohort
. Otherwise,
this function returns NULL
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.