matchPlotServer: Shiny module server for comparison histodot plots of...

View source: R/matchPlot.R

matchPlotServerR Documentation

Shiny module server for comparison histodot plots of attributes in two datasets

Description

Histodot plots of two datasets side-by-side, with or without match information

Usage

matchPlotServer(id, s1data, s2data, results, ignorev = NULL)

Arguments

id

Character ID for specifying namespace, see shiny::NS.

s1data

Reactive data from source #1; needs to have key column named "ID".

s2data

Reactive data from source #2; needs to have key column named "ID".

results

Optional, reactive return value of matchResultServer.

ignorev

Optional, a character vector of variables such as IDs to exclude from selection for plotting.

Details

The module was implemented to compare two cohort datasets but can also allow comparison of other types of datasets that are conceptually similiar. For the original cohort matching use case, if there happens to be match return values from matchResultServer passed to results, the plots will add color-coding to visualize which individuals are matched.

The two datasets s1data and s2data can be dynamically passed in; in fact, customDatasetServer is designed to provide uploaded data as a sourcegit.

See Also

Other matchPlot functions: matchPlotUI()


avucoh/DIVE documentation built on Aug. 29, 2023, 6:02 p.m.