Skip to contents

which = "union" shows the largest |rho| over all data sets (what the screen uses); a data-set name shows its own signed rho. Variables are ordered by the union tree.

Usage

plot_correlation(
  x,
  which = "union",
  base_size = 10,
  file = NULL,
  width = 2250,
  height = 2100
)

Arguments

x

A var_selection.

which

"union" or a data-set name (see names(x$rho)).

base_size

Base font size.

file

Optional file(s) to save the plot to, e.g. "fig.pdf" or c("fig.png", "fig.pdf"); the format follows the extension, and a name without extension is saved as PNG and PDF. The plot is also returned.

width, height

Size of the saved figure in pixels (PDF and SVG at 300 pixels per inch).

Value

A ggplot object.

Examples

# see ?select_variables; e.g. plot_correlation(vs)