diff options
Diffstat (limited to 'man')
| -rw-r--r-- | man/networkplot.Rd | 19 |
1 files changed, 19 insertions, 0 deletions
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' +) + +} |
