View source: R/dplot3_graphjs.R
dplot3_graphjs | R Documentation |
Interactive plotting of an igraph net using threejs
dplot3_graphjs(
net,
vertex.size = 1,
vertex.col = NULL,
vertex.label.col = NULL,
vertex.label.alpha = 0.66,
vertex.frame.col = NA,
vertex.label = NULL,
vertex.shape = "circle",
edge.col = NULL,
edge.alpha = 0.5,
edge.curved = 0.35,
edge.width = 2,
layout = c("fr", "dh", "drl", "gem", "graphopt", "kk", "lgl", "mds", "sugiyama"),
coords = NULL,
layout_params = list(),
cluster = NULL,
groups = NULL,
cluster_params = list(),
cluster_mark_groups = TRUE,
cluster_color_vertices = FALSE,
main = "",
theme = rtTheme,
theme_extra_args = list(),
palette = rtPalette,
mar = rep(0, 4),
par.reset = TRUE,
filename = NULL,
verbose = TRUE,
...
)
net |
|
vertex.size |
Numeric: Vertex size |
vertex.col |
Color for vertices |
vertex.label.col |
Color for vertex labels |
vertex.label.alpha |
Numeric: transparency for |
vertex.frame.col |
Color for vertex border (frame) |
vertex.label |
Character vector: Vertex labels. Default = NULL, which will keep existing
names in |
vertex.shape |
Character, vector, length 1 or N nodes: Vertex shape.
See |
edge.col |
Color for edges |
edge.alpha |
Numeric: Transparency for edges |
edge.curved |
Numeric: Curvature of edges. Default = .35 |
edge.width |
Numeric: Edge thickness |
layout |
Character: one of: "fr", "dh", "drl", "gem", "graphopt", "kk", "lgl", "mds", "sugiyama", corresponding to all the available layouts in igraph |
coords |
Output of precomputed igraph layout. If provided,
|
layout_params |
List of parameters to pass to |
cluster |
Character: one of: "edge_betweenness", "fast_greedy", "infomap", "label_prop", "leading_eigen", "louvain", "optimal", "spinglass", "walktrap", corresponding to all the available igraph clustering functions |
groups |
Output of precomputed igraph clustering. If provided,
|
cluster_params |
List of parameters to pass to |
cluster_mark_groups |
Logical: If TRUE, draw polygons to indicate
clusters, if |
cluster_color_vertices |
Logical: If TRUE, color vertices by cluster membership |
main |
Character: main title |
theme |
rtemis theme to use |
theme_extra_args |
List of extra arguments to pass to the theme function
defined by |
palette |
Color vector or name of rtemis palette |
mar |
Numeric vector, length 4: |
par.reset |
Logical: If TRUE, reset par before exiting. Default = TRUE |
filename |
Character: If provided, save plot to this filepath |
verbose |
Logical, If TRUE, print messages to console. Default = TRUE |
... |
Extra arguments to pass to |
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.