diff options
| author | Chris Sobczak <chris@sobczak.family> | 2026-06-17 00:15:37 -0700 |
|---|---|---|
| committer | Chris Sobczak <chris@sobczak.family> | 2026-06-17 00:15:37 -0700 |
| commit | c9155f21e709ff2d2b84f132f2e8bdf62f0078b8 (patch) | |
| tree | 430d47d5df0d1ed4495bd1be6dbf13e9552ab09c /R/networkplot.R | |
| parent | e39d856d5cc8479c580a57a62520f2ca32d43565 (diff) | |
Add axis labels
Diffstat (limited to 'R/networkplot.R')
| -rw-r--r-- | R/networkplot.R | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/R/networkplot.R b/R/networkplot.R index 61605d2..41669b0 100644 --- a/R/networkplot.R +++ b/R/networkplot.R @@ -16,7 +16,7 @@ #' @import ggraph #' @import igraph #' -#' @example +#' @examples #' set.seed(1) #' X <- matrix(rnorm(100), ncol = 10) #' colnames(X) <- letters[1:10] @@ -24,10 +24,15 @@ #' networkplot(R, title = 'Networkplot without groups') #' #' groups <- data.frame( -#' node = letters[1:5], +#' node = letters[1:10], #' group = c(rep('A', 5), rep('B', 5)) #' ) -#' networkplot(R, groups = groups, group_label = 'Letter', title = 'Networkplot with groups') +#' networkplot( +#' R, +#' groups = groups, +#' group_label = 'Letter', +#' title = 'Networkplot with groups' +#' ) #' #' @export networkplot <- function(R, groups = NULL, group_label = NULL, title = NULL){ |
