association-summaries: Graphical and tabular summaries of association between one or...

association_plotR Documentation

Graphical and tabular summaries of association between one or two tables.

Description

Graphical and tabular summaries of association between one or two tables.

Usage

association_plot(
  a,
  b = a,
  n = 30,
  progress_bar = FALSE,
  verbose = FALSE,
  max_na = 0.9,
  ...
)

association_table(a, b = a, progress_bar = FALSE)

Arguments

a

A data.frame of covariates.

b

An optional data.frame of covariates.

n

An integer controlling the maximum number of associations shown.

progress_bar

Show a progress bar when calculating associations?

verbose

Logical flag that controls whether the indices being tested are printed at each iteration. Useful mainly for debugging.

max_na

The maximum proportion of missing values in a row/column before it is removed from the plot.

...

Passed to internal functions.

Details

For information on the tests used, see associate.

Value

A ggplot or table showing the p-values of association between table columns.

Examples

mat <- matrix(rnorm(1000), ncol = 10)
association_plot(mat)
## only the top 5 associations
association_plot(mat, n = 5)

Alanocallaghan/nalar documentation built on Feb. 27, 2023, 3:27 p.m.