make_upsetplot: Make upset plot

make_upsetplotR Documentation

Make upset plot

Description

Given a phenotype and reference date , make an upset plot of cases (Hx) by the reference dates by source.

Usage

make_upsetplot(definition, lst.data, df.data.settings, df.reference.dates)

Arguments

lst.data

list of data table with all episode data

definitions

phenotype/trait specified in definition table (a row in the table)

lst.data.settings

data frame containing data settings

reference_date

reference dates for each individuals in the whole cohort as a named vector

Value

upset plot

Examples

make_upsetplot(definition=dfDefinitions_processed_expanded%>%filter(TRAIT==trait),lst.harmonized.data$lst.data,df.data.settings,df.reference.dates = df_reference_dt_v0)

niekverw/ukbpheno documentation built on Oct. 30, 2023, 9:17 p.m.