R/mod_cohortOverview_utils.R

Defines functions add_cohort_overview

add_cohort_overview <-
    function(selected_measures,
             module_name,
             profile_color,
             profile_color_type,
             profile_variable_list) {
        r2d3::r2d3(
            data = selected_measures,
            script = app_sys("app/build/cohort_overview.js"),
            d3_version = 5,
            dependencies = app_sys("app/build/d3-legend.js"),
            options = list(
                id = module_name,
                color = profile_color,
                color_type = profile_color_type,
                columns = profile_variable_list
            )
        )
    }

Try the shinyExprPortal package in your browser

Any scripts or data that you put into this service are public.

shinyExprPortal documentation built on Sept. 11, 2024, 6:13 p.m.