From c9155f21e709ff2d2b84f132f2e8bdf62f0078b8 Mon Sep 17 00:00:00 2001 From: Chris Sobczak Date: Wed, 17 Jun 2026 00:15:37 -0700 Subject: Add axis labels --- man/networkplot.Rd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'man') diff --git a/man/networkplot.Rd b/man/networkplot.Rd index 7d881ab..ae72397 100644 --- a/man/networkplot.Rd +++ b/man/networkplot.Rd @@ -25,3 +25,22 @@ entries are the strength of the relationship (ex: correlation, partial correlation). Based on https://r-graph-gallery.com/310-custom-hierarchical-edge-bundling.html } +\examples{ +set.seed(1) +X <- matrix(rnorm(100), ncol = 10) +colnames(X) <- letters[1:10] +R <- cor(X) +networkplot(R, title = 'Networkplot without groups') + +groups <- data.frame( + node = letters[1:10], + group = c(rep('A', 5), rep('B', 5)) +) +networkplot( + R, + groups = groups, + group_label = 'Letter', + title = 'Networkplot with groups' +) + +} -- cgit v1.2.3