plot_graph | R Documentation |
Function to plot a multipartite graph with a given layout
plot_graph( G, dat, layout_name = "in_circle", size_text = 3.5, color_text = "black", color_edges = "black", alpha_node = 1 )
G |
a k-partite graph, from class graph (package igraph). |
dat |
a datasets with multiple columns, each column containing each factor composing the k sets of the G |
layout_name |
The type of layout to create. Either a valid string, a function, a matrix, or a data.frame (see help(ggraph::ggraph)) |
size_text |
a numeric passed to the size argument of function geom_node_text, default 3.5 |
color_text |
a character passed to the colour argument of function geom_node_text, default "black" |
color_edges |
a character passed to the colour argument of function geom_edge_link, default "black" |
alpha_node |
a numeric between 0 and 1 giving the level of transparency wanted for the nodes, default 1 |
An object of class ggraph::gg onto which layers, scales, etc. can be added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.