How hy4m/linket works
File structure
• Top level
• DESCRIPTION, NAMESPACE: package metadata and export directives
• README.Rmd / README.md: user guide and examples
• .Rbuildignore, .gitignore: build tooling
• R/ directory
• Core data‐wrangling: matrix_data(), as_matrix_data(), as_md_tbl(), utils-matrix-data.R, utils.R
• Statistical functions: correlate(), mantel_test(), random_forest(), calc_relimp(), pvalue_adjust(), gdist()
• Plotting API (high-level wrappers): hyplot(), qcorrplot(), qpairs(), qlink()
• Geom extensions (ggproto objects): dozens of geom_* (geom_doughnut, geom_square, geom_couple, etc.), scale_* and theme_* functions, layout and styling helpers
• Package hooks: zzz.R, deprecated/experimental stubs
• man/ directory
• Auto‐generated Rd files—one per exported function
• Figures used in README
• inst/
• CITATION template
• tests/
• testthat harness and individual tests (e.g. test_linkET.R)
Readme insights
• Describes workflow:
a) Data ingestion via matrix_data/as_md_tbl or as_* methods
b) Statistical transforms (correlate, mantel_test) yielding matrix‐style objects
c) High‐level plotting – hyplot + geoms, qcorrplot + geom_square, qpairs + geom_pairs
d) Custom styling via set_corrplot_style / set_default_style
e) Under the hood, everything is a ggplot2 extension built on ggproto
Detail
• Both runtime flow (data & plotting) and build flow (docs & tests)