#' Initialize a ggconsort object for plotting. Used internally.
#' @param .data A \code{ggconsort_cohort} object
#' @keywords Internal
consort_start <- function(.data) {
if (inherits(.data, "ggconsort")) {
return(.data)
}
assert_cohort(.data)
.data[['consort']] <- list()
class(.data) <- c("ggconsort", class(.data))
.data
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.