Plot top PC–metadata associations

plot_top_pc_meta(
  results,
  metadata = NULL,
  n = 10,
  value = c("effect_size", "statistic")
)

Arguments

results

Data frame returned by pc_meta_correlations().

metadata

Character vector of metadata columns to plot. If NULL, the top variables by effect size are used.

n

Number of metadata variables to display.

value

Value to rank by: "effect_size" or "statistic".

Value

A ggplot object.