h_plot_data_cohort_lines: Preparing Cohort Lines for Data Plot

Description Usage Arguments Details

View source: R/helpers.R

Description

[Experimental]

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.

Usage

1
h_plot_data_cohort_lines(cohort, placebo, vertical = TRUE)

Arguments

cohort

(integer)
the cohort indices.

placebo

(flag)
is placebo included in the doses? If it so, this function returns NULL 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.

Details

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.


0liver0815/onc-crmpack-test documentation built on Feb. 19, 2022, 12:25 a.m.