MyNixOS website logo
Description

Network-Style Visualization of Directed Pairwise Relationships.

Create network-style visualizations of pairwise relationships using custom edge glyphs built on top of 'ggplot2'. The package supports both statistical and non-statistical data and allows users to represent directed relationships. This enables clear, publication-ready graphics for exploring and communicating relational structures in a wide range of domains. The method was first used in Abu-Akel et al. (2021) <doi:10.1371/journal.pone.0245100>. Code is released under the MIT License; included datasets are licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0).

gglyph: Network-Style Visualization of Directed Pairwise Relationships

Devversion Lifecycle:maturing

License:MIT R-CMD-check codecov

gglyph provides tools for creating network-style visualizations of directed pairwise relationships using custom edge glyphs built on top of ggplot2.

The package includes four functions:

  1. geom_glyph(): Create a network-based graph that illustrates pairwise relationships (statistical and non-statistical) using custom edges
  2. process_data_statistical(): Process statistical data (e.g., pairwise t-tests) for plotting
  3. process_data_general(): Process general / non-statistical data (any data with directional relationships) for plotting
  4. generate_mock_data(): Create mock data for experimenting with geom_glyph()

They should be used in the following order: either 4 → 1 or 2/3 → 1.

Please note that the package has two licenses:

Installation

You can install the development version from GitHub:

install.packages("devtools")
devtools::install_github("valentinsvelev/gglyph")

Use

You can use the package with real data as follows:

library(gglyph)
library(ggplot2)

data(pisa_2022)

data <- process_data_statistical(pisa_2022)

ggplot(data = data) +
  geom_glyph()

Or by first generating mock data:

library(gglyph)
library(ggplot2)

data <- generate_mock_data(n_nodes = 5, n_edges = 10)

ggplot(data = data) +
  geom_glyph()

Citation

To cite the package use:

Velev, V., & Spitz, A. (2025). gglyph: Network-Style Visualization Of Directed Pairwise Relationships. R package version 0.2.0. https://github.com/valentinsvelev/gglyph

Or for LaTeX users:

@Manual{,
  title = {{gglyph: Network-Style Visualization Of Directed Pairwise Relationships}},
  author = {Velev, Valentin and Spitz, Andreas},
  year = {2025},
  note = {R package version 0.2.0},
  url = {https://github.com/valentinsvelev/gglyph}
}
Metadata

Version

0.2.0

License

Unknown

Platforms (76)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows