Skip to contents

This function creates a visualization of the relationships between RIO tables based on the relations defined in the package.

Usage

rio_visualize_relations(
  ...,
  by_names = TRUE,
  highlight_tables = NULL,
  min_confidence = "medium",
  interactive = TRUE,
  as_table = FALSE,
  find_paths = TRUE,
  max_path_length = NULL,
  quiet = FALSE
)

Arguments

...

Character vector of table names to visualize.

by_names

Logical indicating whether the arguments are table names rather than actual tibbles. Default is TRUE.

highlight_tables

Character vector of table names to highlight in the visualization.

min_confidence

Minimum confidence level for relationships. Can be "high" or "medium". Default is "medium".

interactive

Logical indicating whether to create an interactive visualization (requires visNetwork package). Default is TRUE.

as_table

Logical indicating whether to return relations as a table. Default is FALSE.

find_paths

Logical indicating whether to find connection paths between tables that are not directly connected. Default is TRUE.

max_path_length

Maximum length of connection paths to consider when find_paths is TRUE. Default is NULL (no limit).

quiet

Logical indicating whether to suppress progress messages. Default is FALSE.

Value

A visualization object showing the relationships between tables.

Examples

if (FALSE) { # \dontrun{
# Visualize the relationship between two specific tables
rio_visualize("onderwijslocaties", "vestigingserkenningen")

# Visualize all relationships (no arguments)
rio_visualize()

# Highlight specific tables
rio_visualize("onderwijslocaties", "vestigingserkenningen",
             highlight_tables = "onderwijslocaties")
} # }