plot_graph: Plot multipartite graph

View source: R/plot_graph.R

plot_graphR Documentation

Plot multipartite graph

Description

Function to plot a multipartite graph with a given layout

Usage

plot_graph(
  G,
  dat,
  layout_name = "in_circle",
  size_text = 3.5,
  color_text = "black",
  color_edges = "black",
  alpha_node = 1
)

Arguments

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

Value

An object of class ggraph::gg onto which layers, scales, etc. can be added.


RemiMahmoud/kclique documentation built on March 18, 2023, 1:41 p.m.