upset: Upset plot of multimorbidity patterns: Server

Description Usage Arguments Value See Also Examples

View source: R/mod_upset.R

Description

Generates an Upset plot to view patterns within comorbidity patterns. Contains marginal charts on individual code counts, comorbidity counts, along with relative risks of comorbidity patterns given one or more copies of minor allele.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
upset(
  input,
  output,
  session,
  individual_data,
  all_patient_snps,
  results_data,
  colors,
  action_object = NULL
)

Arguments

input, output, session

Auto-filled by callModule | ignore

individual_data

Reactive object with dataframe containing columns on IID, snp(# copies of allele), and columns for each code included.

all_patient_snps

dataframe containing two columns IID, snp for every case in the population. Used in calculating a overall snp abundence.

results_data

Dataframe containing the results of the phewas study. Needs columns p_val, id, category(along with accompanying color), tooltip. (Used to color codes.)

colors

A list of CSS-valid colors to paint interface in. Needs light_grey, med_grey, dark_grey, light_blue.

action_object

A reactiveVal that will be updated by the module upon isolation, deletion, or snp_filtering.

Value

Shiny module

See Also

upset_UI

Examples

1
callModule(upset, 'my_mod')

tbilab/meToolkit documentation built on June 23, 2020, 9:55 a.m.