1 ggNetView manual documentation
1.1 Introdution
Network analysis has been widely applied in the life sciences, microbiology, ecology, and agronomy to quantify interactions among genes, proteins, metabolites, microorganisms, and environmental factors. These interactions collectively shape the functioning of biological and ecological systems. Despite its broad adoption, existing tools often face limitations in flexibility, customization, reproducibility, and the generation of publication-ready figures.
To address these challenges, ggNetView was developed as an R package that integrates ggplot2, ggraph, and tidygraph within the Grammar of Graphics framework, enabling fully reproducible and highly customizable network visualizations. The package provides deterministic layout algorithms, comprehensive topological analyses, modular coloring schemes, hierarchical annotations, and consistent theming, ensuring standardized and interpretable graphical output.
Although initially designed for applications in soil science and microbial ecology, ggNetView is broadly applicable to network analyses in molecular biology, including WGCNA and protein–protein interaction (PPI) networks. By lowering technical barriers in network construction and visualization, ggNetView enables researchers across disciplines to efficiently produce reproducible, publication-quality network figures.
1.2 Installation
Step1: install CRAN dependencies
cran_pkgs <- c(
"boot", "dplyr", "FNN", "future", "future.apply",
"ggforce", "ggnewscale", "ggplot2", "ggraph", "ggrepel",
"Hmisc", "huge", "igraph", "magrittr", "MASS",
"Matrix", "patchwork", "progressr", "psych", "purrr",
"qgraph", "Rcpp", "RcppArmadillo", "readr", "rlang",
"scales", "scatterpie", "stringr", "tibble", "tidygraph",
"tidyr", "vegan", "VGAM", "WGCNA"
)
new_pkgs <- cran_pkgs[!cran_pkgs %in% installed.packages()[, "Package"]]
if (length(new_pkgs)) install.packages(new_pkgs)Step2: (optional) install suggested packages
These packages are not required for the core functionality, but enable additional features (e.g. dynamic tree cut, node influence, vignettes, tests):
install.packages(c("dynamicTreeCut", "influential",
"knitr", "rmarkdown",
"RobustRankAggreg", "testthat"))Step3: install ggNetView from GitHub
# install.packages("devtools")
devtools::install_github("Jiawang1209/ggNetView")1.5 Contact
- Email: Jiawang1209@163.com
- Github: https://github.com/Jiawang1209/ggNetView
- ggNetView-manual: https://jiawang1209.github.io/ggNetView-manual/