plot_kclique | R Documentation |
Function to highlight a kclique one a graph
plot_kclique( G, tibble_kcliques, dataset, vector_kcliques = 1, automatic_nodes = TRUE, show_legend_edges = FALSE, color_edge_kclique = "black", color_edge_no_kclique = "grey75", layout_name = "in_circle", size_text = 3.5, alpha_node = 1 )
G |
a k-partite graph, from class graph (package igraph). |
tibble_kcliques |
An output of the function function_list_kcliques_to_tibble |
dataset |
a datasets with multiple columns, each column containing each factor composing the k sets of the G |
vector_kcliques |
a vector containing the rows of the tibble containing the kcliques you want to highlight |
automatic_nodes |
a logical telling if the nodes have to be colored accordingly to their partite's belonging |
show_legend_edges |
a logical telling if the edges' color legend has to be shown |
color_edge_kclique |
a string indicating the color of the edges members of the kclique |
color_edge_no_kclique |
a string indicating the color of the edges that are not members of the kclique |
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 |
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.