Learn R Programming

GAPR (version 0.1.5)

Generalized Association Plots

Description

Provides a comprehensive framework for visualizing associations and interaction structures in matrix-formatted data using Generalized Association Plots (GAP). The package implements multiple proximity computation methods (e.g., correlation, distance metrics), ordering techniques including hierarchical clustering (HCT) and Rank-2-Ellipse (R2E) seriation, and optional flipping strategies to enhance visual symmetry. It supports a variety of covariate-based color annotations, allows flexible customization of layout and output, and is suitable for analyzing multivariate data across domains such as social sciences, genomics, and medical research. The method is based on Generalized Association Plots introduced by Chen (2002) and further extended by Wu, Tien, and Chen (2010) .

Copy Link

Version

Install

install.packages('GAPR')

Monthly Downloads

491

Version

0.1.5

License

MIT + file LICENSE

Maintainer

Shu-Yu Lin

Last Published

January 28th, 2026

Functions in GAPR (0.1.5)

.compute_gar_core

Internal function to compute Anti-Robinson or GAR/ RGAR score
AR

Compute the Anti-Robinson (AR) score
ellipse_sort

Ellipse Sort
GAP

Generalized Association Plots (GAP)
RGAR

Compute the Relative Generalized Anti-Robinson (RGAR) score
computeProximity

Compute Proximity Matrix
GAR

Compute the Generalized Anti-Robinson (GAR) score
hctree_sort

HCTree Sort
GAP_Rainbow

Color palette: GAP_Rainbow
GAP_d

Color palette: GAP_d
grayscale_palette

Color palette: grayscale_palette
GAP_Blue_White_Red

Color palette: GAP_Blue_White_Red