visualize\(associations\)heatmap

visualize association results as a heatmap or dotplot

Description

Plots a heatmap or dotplot of association results using tidyHeatmap/ComplexHeatmap. Flexible mapping of rows, columns, color, and size via unquoted expressions. Requires installed packages .pkg tidyHeatmap and .pkg ComplexHeatmap.

Usage

visualize.associations.heatmap(
  associations,
  rows.by = predictor,
  columns.by = outcome,
  color.by = estimate,
  size.by = NULL,
  asterisk.by = adj.p.value,
  rows.group.by = NULL,
  columns.group.by = NULL,
  row.labels = NULL,
  column.labels = NULL,
  column_names_rot = 45,
  border = TRUE,
  ...
)

Arguments

associations

Data frame of association results.

rows.by

Unquoted expression for row variable (default: predictor)

columns.by

Unquoted expression for column variable (default: outcome)

color.by

Unquoted expression for color variable (default: estimate)

size.by

Unquoted expression for size variable (default: NULL, triggers dotplot if set)

row.labels

Unquoted expression for row labels (optional)

column.labels

Unquoted expression for column labels (optional)

Additional arguments passed to tidyHeatmap::heatmap()

Value

A ComplexHeatmap object