network_graph_images: Build network graph plots

View source: R/02-calculate.R

network_graph_imagesR Documentation

Build network graph plots

Description

Detects maximal cliques and saves images of network graphs into tempfile. Tempfile paths and info on cliques are returned.

Usage

network_graph_images(
  x,
  min_clique_size = 3,
  show_edges = TRUE,
  min_matches = 6,
  label_wrap_width = 15,
  label_max_length = -1,
  indicate_direction = show_edges,
  colorize_direction = TRUE,
  colorize_cliques = TRUE,
  colorize_poles = TRUE,
  align_poles = TRUE,
  alpha = 0.1,
  valence_prefix = FALSE,
  border_default = "#987824",
  fill_default = "#00000008",
  image_border_color = grey(0.6),
  seed = 0
)

Arguments

x

A dataframe with a grid.

min_clique_size

Minimal size of cliques to be considered.

show_edges

Whether to show edges in plot.

min_matches

Minimal number of matching scores between constructs to be marked as related.

label_wrap_width

Width of wrapped element label text.

label_max_length

Trim element label at max length characters.

indicate_direction, colorize_direction

Indicate direction of relatedness by edge label +/- and edge color (red, green). Only applied if show_edges = TRUE.

colorize_cliques

Draw cliques in different colors? (default TRUE).

colorize_poles

Colorize positive/negative/neutral poles as red, green, and gray respectively (default TRUE).

align_poles

Align preferred poles on the same side.

alpha

Alpha color value for cliques fillings (default .1).

valence_prefix

Add (+/-) pole prefix to indicate preference. Empty means no preference.

border_default, fill_default

Default border and fill color of polygon encircling clique constructs. Used when colorize_cliques is FALSE. Use NA for no color.

image_border_color

Color of border around generated graph images. If NULL or NA no border is drawn.

seed

Seed number passed to set.seed. Will determine the orientation of the graph.


OpenRepGrid.ic documentation built on May 29, 2024, 7:29 a.m.