Plot PC–metadata correlation heatmap

plot_pc_meta_heatmap(
  results,
  value = c("statistic", "effect_size"),
  top_n = 20,
  top_pcs = 10
)

Arguments

results

Data frame returned by pc_meta_correlations().

value

Value to plot: "statistic" or "effect_size".

top_n

Number of top metadata variables to show by median absolute value.

top_pcs

Number of top PCs to show by index.

Value

A ggplot object.