Learn R Programming

GAPR (version 0.1.0)

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')

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Shu-Yu Lin

Last Published

May 27th, 2025

Functions in GAPR (0.1.0)

GAP_d

Color palette: GAP_d
computeProximity

Compute Proximity Matrix
RGAR

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

Compute the Anti-Robinson (AR) score
ellipse_sort

Ellipse Sort
GAR

Compute the Generalized Anti-Robinson (GAR) score
GAP

Generalized Association Plots (GAP)
GAP_Blue_White_Red

Color palette: GAP_Blue_White_Red
.compute_gar_core

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

Color palette: GAP_Rainbow
hctree_sort

HCTree Sort
grayscale_palette

Color palette: grayscale_palette