|
91 | 91 |
|
92 | 92 | #' @export
|
93 | 93 | #' @rdname nplot
|
94 |
| -nplot <- function(x, ..., edgelist) { |
| 94 | +nplot <- function( |
| 95 | + x, |
| 96 | + layout, |
| 97 | + vertex.size = 1, |
| 98 | + bg.col = "transparent", |
| 99 | + vertex.nsides = 10, |
| 100 | + vertex.color = grDevices::hcl.colors(1), |
| 101 | + vertex.size.range = c(.01, .03), |
| 102 | + vertex.frame.color = NULL, |
| 103 | + vertex.rot = 0, |
| 104 | + vertex.frame.prop = .2, |
| 105 | + vertex.label = NULL, |
| 106 | + vertex.label.fontsize = NULL, |
| 107 | + vertex.label.color = "black", |
| 108 | + vertex.label.fontfamily = "HersheySans", |
| 109 | + vertex.label.fontface = "bold", |
| 110 | + vertex.label.show = .3, |
| 111 | + vertex.label.range = c(5, 15), |
| 112 | + edge.width = 1, |
| 113 | + edge.width.range = c(1, 2), |
| 114 | + edge.arrow.size = NULL, |
| 115 | + edge.color = ~ ego(alpha = .1, col = "gray") + alter, |
| 116 | + edge.curvature = pi/3, |
| 117 | + edge.line.lty = "solid", |
| 118 | + edge.line.breaks = 5, |
| 119 | + sample.edges = 1, |
| 120 | + skip.vertex = FALSE, |
| 121 | + skip.edges = FALSE, |
| 122 | + skip.arrows = skip.edges, |
| 123 | + add = FALSE, |
| 124 | + zero.margins = TRUE, |
| 125 | + ..., |
| 126 | + edgelist |
| 127 | + ) { |
95 | 128 |
|
96 | 129 | # Checking if the passed arguments match the default class
|
97 | 130 | res <- sapply(
|
|
0 commit comments